Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added LogDebug #284

Merged
merged 3 commits into from
Mar 29, 2020
Merged

Added LogDebug #284

merged 3 commits into from
Mar 29, 2020

Conversation

kennedy
Copy link
Contributor

@kennedy kennedy commented Mar 28, 2020

resolves #282
This provides basic situation awareness of the bridge. Created a new logging method called LogDebug for legitimate verbose debug messages. Bonus, I created a plain log message type without any prefix or flags for the version info.
UPDATE:
I also changed the log variable from debug to logger

-debug=false or omitted

INFO: 2020/03/28 17:26:35 Current TeleIRC version: v2.0
INFO: 2020/03/28 17:26:35 Creating new Telegram bot client...
INFO: 2020/03/28 17:26:35 Creating new IRC bot client...
INFO: 2020/03/28 17:26:35 Starting up Telegram bot...
INFO: 2020/03/28 17:26:35 Starting up IRC bot...

-debug=true

INFO: 2020/03/28 17:21:37 Current TeleIRC version: v2.0
DEBUG: 2020/03/28 17:21:37 Debug mode enabled!
INFO: 2020/03/28 17:21:37 Creating new Telegram bot client...
INFO: 2020/03/28 17:21:37 Creating new IRC bot client...
INFO: 2020/03/28 17:21:37 Starting up Telegram bot...
INFO: 2020/03/28 17:21:37 Starting up IRC bot...
DEBUG: 2020/03/28 17:21:37 Adding IRC event handler: JOIN
DEBUG: 2020/03/28 17:21:37 Adding IRC event handler: CLIENT_CONNECTED
DEBUG: 2020/03/28 17:21:37 Adding IRC event handler: PRIVMSG
DEBUG: 2020/03/28 17:21:37 Adding IRC event handler: PART
DEBUG: 2020/03/28 17:21:37 Adding IRC event handler: QUIT
DEBUG: 2020/03/28 17:21:37 Authorized on account ziky_bot
DEBUG: 2020/03/28 17:21:39 connectHandler triggered
DEBUG: 2020/03/28 17:21:43 joinHandler triggered

@kennedy kennedy self-assigned this Mar 28, 2020
@Tjzabel Tjzabel added the improvement Improves on something that already exists label Mar 29, 2020
@Tjzabel Tjzabel added this to In progress in TeleIRC development via automation Mar 29, 2020
@Tjzabel Tjzabel added this to the v2.0.0 milestone Mar 29, 2020
Copy link
Member

@Tjzabel Tjzabel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!! Everything checks out 💯

@kennedy kennedy merged commit 10109fb into master Mar 29, 2020
TeleIRC development automation moved this from In progress to Done Mar 29, 2020
@kennedy kennedy deleted the feature/282-logdebug branch March 29, 2020 00:38
@jwflory
Copy link
Member

jwflory commented Mar 30, 2020

Yay, this is awesome! ❤️ I will love to have this in logs, especially like on days like today when there are major infrastructure outages (looking at you, OVH) and some of our bots stop working for mysterious reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves on something that already exists
Projects
Development

Successfully merging this pull request may close these issues.

Add LogDebug
3 participants