lib/chatterbot/config.rb in chatterbot-0.2.2 vs lib/chatterbot/config.rb in chatterbot-0.2.3
- old
+ new
@@ -51,10 +51,14 @@
# should we write to a log file?
def logging?
has_config? && config.has_key?(:log_dest)
end
+ def verbose?
+ config[:verbose] || false
+ end
+
#
# destination for log entries
def log_dest
config[:log_dest]
end
@@ -195,9 +199,10 @@
tmp = config.delete_if { |k, v| global_config.has_key?(k) && global_config[k] == config[k] }
# let's not store these, they're just command-line options
tmp.delete(:debug_mode)
tmp.delete(:dry_run)
+ tmp.delete(:verbose)
# update the since_id now
tmp[:since_id] = tmp.delete(:tmp_since_id) unless ! tmp.has_key?(:tmp_since_id)