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

Bar*_*ran 24 node.js hubot

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

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

acz*_*low 40

将环境变量设置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
Run Code Online (Sandbox Code Playgroud)

  • `export HUBOT_LOG_LEVEL ="debug"`是你真正需要的调试日志. (7认同)