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

Improve the log level display #14146

Merged
merged 1 commit into from May 13, 2024
Merged

Conversation

annando
Copy link
Collaborator

@annando annando commented May 11, 2024

This improves PR #14135 by adding more loglevels.

view/global.css Outdated Show resolved Hide resolved
Comment on lines 68 to 71
{{if $row->level == "EMERGENCY"}}bg-danger
{{elseif $row->level == "ALERT"}}bg-danger
{{elseif $row->level == "CRITICAL"}}bg-warning
{{elseif $row->level == "ERROR"}}bg-warning
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't really distinguish between these 4 log levels in practice, so I would set them all to bg-danger. On the other hand, warnings can often be ignored.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This "on the other hand" confuses me. Should I change it?

Copy link
Collaborator

@MrPetovan MrPetovan May 12, 2024

Choose a reason for hiding this comment

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

What I'm saying is that it is counter-productive to "hide" error and critical messages behind the Warning color which doesn't necessarily prompts an admin to react to these messages. Please have only warnings use the bg-warning class, all the worse levels should use the bg-danger class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed

@MrPetovan MrPetovan added this to the 2024.06 milestone May 11, 2024
@annando annando force-pushed the loglevels branch 3 times, most recently from 4f780ee to c661a78 Compare May 13, 2024 00:43
@MrPetovan MrPetovan merged commit 104d355 into friendica:develop May 13, 2024
11 checks passed
@annando annando deleted the loglevels branch May 13, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants