25

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

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

4

1 回答 1

41

将环境变量设置HUBOT_LOG_LEVELdebug. 我已经开始hubot使用这个 shell 脚本了。

<-- 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
于 2013-09-20T15:11:17.133 回答