Skip to content

Commit

Permalink
Log all hubot output to debug log?
Browse files Browse the repository at this point in the history
I was hoping to build something on top of hubot's log (a twitter integration) and I noticed that while hubot's logging everything he hears he's not logging everything he says.  If he were logging his own .send() text then I could very easily hook into that.  What do you think?

cc @joshwlewis

btw thanks for this library from #memtech on freenode 🍺
  • Loading branch information
dpritchett committed Aug 1, 2014
1 parent 522c501 commit d047559
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class IrcBot extends Adapter
return logger.error "ERROR: Not sure who to send to. envelope=", envelope

for str in strings
logger.debug "#{target} #{str}"
@bot.say target, str

sendPrivate: (envelope, strings...) ->
Expand Down

0 comments on commit d047559

Please sign in to comment.