You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying out the new v2 library and so far the changes are great. I'm just running into something of an odd behavior and wanted to confirm if this was intentional or perhaps an oversight.
When initializing the library with NewClient I am passing in my own logger (logrus.Logger) and optionally setting WithDebug if my logrus instance log level is also set to debug level. What I'm noticing is when not in debug the logs are properly being formatted and processed via my log instance. However, once I enable debug it appears to bypass my logger and log straight to os.Stderr. This is not causing any real issue other than just my desired control over log formats/etc.
{"fileline":"zenbot/main.go:40","level":"debug","message":"basic initialization complete","time":"2023-08-24T12:54:21-04:00"}
slack-go/slack/socketmode2023/08/24 12:54:21 socket_mode_managed_conn.go:257: Starting SocketMode
{"fileline":"[email protected]/slacker.go:219","level":"info","message":"connecting to Slack with Socket Mode...\n","time":"2023-08-24T12:54:21-04:00"}
slack-go/slack/socketmode2023/08/24 12:54:21 socket_mode_managed_conn.go:261: Failed to start or connect with SocketMode: not_authed
slack-go/slack/socketmode2023/08/24 12:54:21 socket_mode_managed_conn.go:209: invalid auth when connecting with SocketMode: not_authed
slack-go/slack/socketmode2023/08/24 12:54:21 socket_mode_managed_conn.go:76: Failed to connect with Socket Mode on try 0: not_authed
{"fileline":"bot/init.go:51","level":"error","message":"slack bot failure: not_authed","time":"2023-08-24T12:54:21-04:00"}
Process finished with the exit code 0
output without WithDebug
{"fileline":"zenbot/main.go:40","level":"debug","message":"basic initialization complete","time":"2023-08-24T12:55:30-04:00"}
{"fileline":"[email protected]/slacker.go:219","level":"info","message":"connecting to Slack with Socket Mode...\n","time":"2023-08-24T12:55:30-04:00"}
{"fileline":"bot/init.go:50","level":"error","message":"slack bot failure: not_authed","time":"2023-08-24T12:55:30-04:00"}
Process finished with the exit code 0
The text was updated successfully, but these errors were encountered:
Hello,
I am trying out the new v2 library and so far the changes are great. I'm just running into something of an odd behavior and wanted to confirm if this was intentional or perhaps an oversight.
When initializing the library with
NewClient
I am passing in my own logger (logrus.Logger
) and optionally settingWithDebug
if my logrus instance log level is also set to debug level. What I'm noticing is when not in debug the logs are properly being formatted and processed via my log instance. However, once I enable debug it appears to bypass my logger and log straight toos.Stderr
. This is not causing any real issue other than just my desired control over log formats/etc.Lib init
IsDebugMode wrapper
output while in debug
output without
WithDebug
The text was updated successfully, but these errors were encountered: