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

Allow switching of log level while running #1627

Closed
ghost opened this issue Jan 5, 2022 · 6 comments
Closed

Allow switching of log level while running #1627

ghost opened this issue Jan 5, 2022 · 6 comments
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Jan 5, 2022

Hi!

I'm trying to debug some OMEMO issues that I'm having with Prosody. /xmlconsole is really helpful, but can be tedious to search.

It'd be really nice to be able to do /xmlsave <path/to/file> or something like /save inside the XML console. It seems like a /save could apply to normal chat windows as well, though those already have native logging.

Expected Behavior

  • /xmlconsole
  • /save debug.xml

Current Behavior

  • /xmlconsole
  • Scroll lots and can't use any kind of search help.

Possible Solution

  • /xmlsave <path/to/file.xml>
  • /save <path/to/file.log>

Context

Trying to debug OMEMO issues with Prosody.

Thank you!

@jubalh
Copy link
Member

jubalh commented Jan 27, 2022

Workaround for now:
If you start profanity with -l DEBUG you will get the stanzas in ~/.local/share/profanity/logs/profanity.log you can filter this using grep xmpp: DBG.

@ghost
Copy link
Author

ghost commented Feb 2, 2022

That is helpful. Thank you!

@jubalh jubalh added the feature label Feb 23, 2022
@DebXWoody
Copy link
Contributor

Workaround for now: If you start profanity with -l DEBUG you will get the stanzas in ~/.local/share/profanity/logs/profanity.log you can filter this using grep xmpp: DBG.

It doesn't sounds like a workaround to me. At the end of the day, it's what we need - the xml in a file. It would be nice if we can enable and disable the level of logging within the application itself. The user can switch the level without a restart of profanity.

Something like
\debug set level INFO

@jubalh
Copy link
Member

jubalh commented Mar 21, 2022

I think you are right!

@jubalh jubalh self-assigned this Jun 15, 2022
@jubalh jubalh added this to the 0.13.0 milestone Jun 15, 2022
@jubalh jubalh changed the title /xmlsave feature Allow switching of log level while running Jun 22, 2022
@jubalh
Copy link
Member

jubalh commented Jun 22, 2022

@jubalh jubalh closed this as completed in 3f26dd6 Jun 22, 2022
@jubalh
Copy link
Member

jubalh commented Jun 22, 2022

done in #1726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants