litaio / lita-slack

A Slack adapter for Lita.
MIT License
141 stars 130 forks source link

lack of debug output #32

Open Telmo opened 9 years ago

Telmo commented 9 years ago

I am having issues getting this plugin to work and setting the log level to debug is not displaying any information at all

[2015-05-12 13:41:33 UTC] WARN: Lita::Handler.default_config is deprecated and will be removed in Lita 5.0. Use Lita::Handler.config instead. The method was found defined in the jenkins handler.
[2015-05-12 13:46:22 UTC] DEBUG: Connecting to the Slack Real Time Messaging API.
[2015-05-12 13:46:24 UTC] INFO: Disconnected from Slack.
[2015-05-12 13:46:24 UTC] DEBUG: Closing connection to the Slack Real Time Messaging API.

lita wont stay connected to slack and I have no way of knowing why.

jimmycuadra commented 9 years ago

Sorry you're having trouble. :( If you're willing to dig in a bit yourself, lita-slack uses faye-websocket under the hood. Adding additional debug logging to some of the WebSocket event callbacks may be helpful in figuring out what's going wrong.

miketheman commented 9 years ago

Was running for over a week or two, and finally got something in the log:

2015-08-21T06:31:01.453312764Z [2015-08-21 06:31:01 UTC] DEBUG: presence_change event received from Slack and will be ignored.
2015-08-21T06:32:19.200219957Z [2015-08-21 06:32:19 UTC] DEBUG: team_migration_started event received from Slack and will be ignored.
2015-08-21T06:32:19.201050244Z [2015-08-21 06:32:19 UTC] DEBUG: presence_change event received from Slack and will be ignored.
2015-08-21T06:32:19.248781379Z [2015-08-21 06:32:19 UTC] INFO: Disconnected from Slack.
2015-08-21T06:32:19.249059287Z [2015-08-21 06:32:19 UTC] DEBUG: Closing connection to the Slack Real Time Messaging API

Is there some place in this plugin I would pass the config option to the websocket driver to encourage more verbosity?