lib/aia/logging.rb in aia-0.5.7 vs lib/aia/logging.rb in aia-0.5.8
- old
+ new
@@ -11,9 +11,12 @@
log_file_path, # path/to/file
'weekly', # rotation interval
'a' # append to existing file
)
else
+ # SMELL: Looks like you get logging whether you want it or not
+ # TODO: when path is nil create a fake logger
+ # that does nothing
Logger.new(STDOUT) # Fall back to standard output if path is nil or invalid
end
configure_logger
end