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

IRC Raw Log #395

Open
half-duplex opened this issue Apr 25, 2022 · 1 comment
Open

IRC Raw Log #395

half-duplex opened this issue Apr 25, 2022 · 1 comment
Labels
improvement Improves on something that already exists IRC Issues relating to the IRC bridge logging Improvements, changes, and/or new logging messages
Milestone

Comments

@half-duplex
Copy link
Contributor

Summary

Troubleshooting issues with IRC connectivity would be easier with raw log functionality.

Background

Is your feature request related to a problem? Please describe:

I'm currently having issues with the bot connecting to the server but not joining the channel.

Describe the solution you'd like:

The ability to have the bot log every IRC message it sends or receives.

>> 'PRIVMSG #otv :<Acid> Hello!\r\n'
<< ':[email protected] PRIVMSG #otv :Hey, you!\r\n`

Anything like -rawlog, -debug TRACE, -debug -debug -debug, or a IRC_RAW_LOG=/tmp/foo.log config variable would be great.

Describe alternatives you've considered:

  • Not all servers allow unencrypted connections, so using that and tcpdump/tshark/wireshark isn't an ideal solution.

  • Not everybody knows how to strip TLS using socat, and doing so is annoying, so that's not an ideal solution.

Therefore, I think a flag to print every IRC message sent or received is the lowest-effort way to enable easier debugging of IRC issues.

Details

I've tried using -debug, but it hasn't helped me figure out why the bot isn't joining the channel. It would be great if it could give more information without needing a rawlog, but I'm not sure how to generalize that well.

Outcome

Users can easily have the bot log all raw IRC messages to a file or stdout.

@half-duplex half-duplex added needs triage Metadata needs to be triaged and updated new change Adds new capabilities or functionality labels Apr 25, 2022
@jwflory jwflory added improvement Improves on something that already exists IRC Issues relating to the IRC bridge logging Improvements, changes, and/or new logging messages and removed new change Adds new capabilities or functionality needs triage Metadata needs to be triaged and updated labels May 10, 2022
@jwflory jwflory added this to the v2.x.x milestone May 10, 2022
@jwflory
Copy link
Member

jwflory commented May 10, 2022

We have a robust logger already. It should be possible to extend this to messages as well. It would make debugging easier in many cases.

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 IRC Issues relating to the IRC bridge logging Improvements, changes, and/or new logging messages
Projects
None yet
Development

No branches or pull requests

2 participants