我在哪里可以看到hubot记录器消息?

时间:2013-07-14 09:51:39

标签: node.js hubot

我是hubot的新手,在那里我看到了一个声明     robot.logger.debug“在#{commit.url}上尝试gitio”

有人可以告诉我在哪里可以看到此调试消息。我正在使用./bin/hubot命令来运行它。有没有办法在调试模式下运行它?所以我可以看到调试消息?

1 个答案:

答案 0 :(得分:40)

将环境变量HUBOT_LOG_LEVEL设置为debug。我一直在使用这个shell脚本开始hubot

< - startbot.sh - >

#!/bin/bash

export HUBOT_HIPCHAT_JID="<your hipchat id>"
export HUBOT_HIPCHAT_PASSWORD="<your password>"
export HUBOT_LOG_LEVEL="debug"
bin/hubot --adapter hipchat
相关问题