aboutsummaryrefslogtreecommitdiff
path: root/dinobot.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-21 06:31:59 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-21 06:31:59 -0700
commit27c066998bea20387d4c33e504145496aad1b344 (patch)
tree70e1a352476c2f9d6996b373f3f5e8275e4b0ee8 /dinobot.rb
parent607d7ae62d59bbc422da2211286fca96caa4f5e7 (diff)
downloaddinobot-27c066998bea20387d4c33e504145496aad1b344.tar.gz
dinobot-27c066998bea20387d4c33e504145496aad1b344.tar.xz
Add debug setting for verbose output.
Diffstat (limited to 'dinobot.rb')
-rw-r--r--dinobot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/dinobot.rb b/dinobot.rb
index 9b33894..43b21c8 100644
--- a/dinobot.rb
+++ b/dinobot.rb
@@ -153,7 +153,7 @@ module Dinobot
def run_methods(methods)
methods.each do |m|
- @logger.info "Executing method: #{m.inspect}"
+ @logger.info "Executing method: #{m.inspect}" if @config.data[:debug]
send(*m)
end
end