From 87d76281eb374f4c4538fe5bf5b774b73dd5d7e3 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 6 Jan 2014 10:24:43 +0100 Subject: first interesting tests --- bin/tapicero | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/tapicero b/bin/tapicero index f72b0db..32cc228 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -59,7 +59,6 @@ end # # Start the daemon # -require 'tapicero' # so we can use Tapicero.logger below. require 'daemons' if ENV["USER"] == "root" options = {:app_name => 'tapicero', :dir_mode => :system} # this will put the pid file in /var/run @@ -70,7 +69,6 @@ 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.class.name + ": " + exc.to_s - Tapicero.logger.error exc.backtrace.join("\n") + puts exc.class.name + exc.to_s + puts exc.backtrace.join("\n") end -- cgit v1.2.3