summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-01-03 15:28:49 +0100
committerAzul <azul@riseup.net>2014-01-03 15:28:49 +0100
commit638e6a83a923e61d8b320818a39befd62529ae1a (patch)
treeb7f57d16c83ff50f9cb4403d5dcd999212d2ebaa /bin
parent2365ee92396dba077f01d50f34fa2203841bde9f (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-xbin/tapicero3
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