# File lib/god/cli/run.rb, line 125 def setup_logging log_file = God.log_file log_file = File.expand_path(@options[:log]) if @options[:log] log_file = "/dev/null" if !log_file && @options[:daemonize] if log_file puts "Sending output to log file: #{log_file}" unless @options[:daemonize] # reset file descriptors STDIN.reopen "/dev/null" STDOUT.reopen(log_file, "a") STDERR.reopen STDOUT STDOUT.sync = true end end