lib/splash/helpers.rb in prometheus-splash-0.5.0 vs lib/splash/helpers.rb in prometheus-splash-0.5.2
- old
+ new
@@ -157,12 +157,10 @@
end
}
if options[:foreground]
change_logger logger: :dual
Process.setproctitle options[:description] if options[:description]
- p $0
return yield
- p 'titi'
end
fork do
change_logger logger: :daemon
#Process.daemon
File.open(options[:pid_file],"w"){|f| f.puts Process.pid } if options[:pid_file]