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

Make some log lines report at DEBUG level #1168

Merged
merged 9 commits into from
Nov 20, 2020
Merged

Conversation

Half-Shot
Copy link
Contributor

Fixes #1167

@Half-Shot Half-Shot force-pushed the hs/logging-improvement branch from 5c85b12 to 72d6897 Compare October 27, 2020 18:10
@Half-Shot
Copy link
Contributor Author

Reminder to myself that "Server doesn't mirror parts" should not be logged for each room.

@Half-Shot
Copy link
Contributor Author

Also log eventIds, not messages.

@Half-Shot Half-Shot requested a review from a team November 19, 2020 23:34
@Half-Shot Half-Shot marked this pull request as ready for review November 19, 2020 23:34
req.log.info("onPrivateMessage: %s from=%s to=%s action=%s",
server.domain, fromUser, toUser,
JSON.stringify(action).substring(0, 80)
req.log.info("onPrivateMessage: %s from=%s to=%s",
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reasoning to keep these on info?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's still really useful to keep track of when people perform actions, the info level just strips away the message data.

Copy link
Member

@benparsons benparsons left a comment

Choose a reason for hiding this comment

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

lgtm

@Half-Shot Half-Shot merged commit e4a486c into develop Nov 20, 2020
@Half-Shot Half-Shot deleted the hs/logging-improvement branch November 20, 2020 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please improve severity of some log entries
3 participants