diff options
author | Azul <azul@riseup.net> | 2014-01-03 15:28:49 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-01-03 15:28:49 +0100 |
commit | 638e6a83a923e61d8b320818a39befd62529ae1a (patch) | |
tree | b7f57d16c83ff50f9cb4403d5dcd999212d2ebaa /bin | |
parent | 2365ee92396dba077f01d50f34fa2203841bde9f (diff) |
make logging more precise
* do not log the SystemExit after the fork
* log error classes alongside messages
* unify logging in retry_request_once
* debug now logs every step
* info has one message per user created
* warn only logs errors during the actions
* error only logs crashes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/tapicero | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/tapicero b/bin/tapicero index b2eebed..c20a114 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -68,8 +68,9 @@ else end begin Daemons.run("#{BASE_DIR}/lib/tapicero_daemon.rb", options) +rescue SystemExit rescue Exception => exc Tapicero.logger.error "Uncaught exception. Daemon will die." - Tapicero.logger.error exc.to_s + Tapicero.logger.error exc.class.name + ": " + exc.to_s Tapicero.logger.error exc.backtrace.join("\n") end |