lib/chatterbot/logging.rb in chatterbot-0.2.2 vs lib/chatterbot/logging.rb in chatterbot-0.2.3
- old
+ new
@@ -8,9 +8,10 @@
module Logging
#
# log a message
def debug(s)
+ puts s if verbose?
logger.debug s unless ! logging?
end
#
# something really bad happened, print it out and log it