Skip to content

Do not log uninteresting events#2180

Merged
emmachughes merged 1 commit intomasterfrom
no-uninteresting-events
Mar 15, 2023
Merged

Do not log uninteresting events#2180
emmachughes merged 1 commit intomasterfrom
no-uninteresting-events

Conversation

@emmachughes
Copy link
Contributor

Laravel has a logger implementing PSR-3 which defines the info logging level as:

/**
 * Interesting events.
 *
 * Example: User logs in, SQL logs.
 *
 * @param string $message
 * @param array $context
 * @return void
 */
public function info($message, array $context = array());

Yet, Content Author logs with this level what is indisputably not an interesting event: that nothing happened. This happens every minute, filling the logs with useless information.

To fix this, the level is adjusted to debug, and the minimum logging level for the stderr handler is set to info.

@emmachughes emmachughes requested a review from chrieinv March 14, 2023 09:15
@emmachughes emmachughes merged commit 23adf36 into master Mar 15, 2023
@emmachughes emmachughes deleted the no-uninteresting-events branch March 15, 2023 07:55
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.

2 participants