Permalink
Browse files

Log will default to STDOUT.

  • Loading branch information...
1 parent d098236 commit 4b30ac917daea318d794d52e536b52c18cf33a60 Dhruv Bansal committed Sep 10, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/graphiterb/utils/log.rb
@@ -4,10 +4,8 @@ module Graphiterb
class << self; attr_accessor :log end
- # Create a Logger and point it at Graphiterb::LOG_FILE_DESTINATION which is
- # set in ~/.imwrc and defaults to STDERR.
def self.instantiate_logger!
- Graphiterb.log ||= Logger.new(Settings[:log])
+ Graphiterb.log ||= Logger.new(Settings[:log] || STDOUT)
Graphiterb.log.datetime_format = "%Y%m%d-%H:%M:%S "
Graphiterb.log.level = Logger::INFO
end

0 comments on commit 4b30ac9

Please sign in to comment.