We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I execute the following.
require 'serverengine' module MyWorker def initialize 1 / 0 # raise divided by 0 end def run until @stop logger.info "Awesome work!" sleep 1 end end def stop @stop = true end end se = ServerEngine.create(nil, MyWorker, { daemonize: false, log: 'myserver.log', pid_path: 'myserver.pid', worker: 1, worker_type: "thread", }) se.run
But myserver.log does not contain the exception record.
I replace se.run with the following so that the logger works as expected.
se.run
begin se.run rescue SystemExit sleep 1 end
I understand why this program works thus, but is this behavior specification?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I execute the following.
But myserver.log does not contain the exception record.
I replace
se.run
with the following so that the logger works as expected.I understand why this program works thus, but is this behavior specification?
The text was updated successfully, but these errors were encountered: