Skip to content

Set hierarchicalLoggingEnabled to disable neat_cache logs properly. #4421

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

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app_dart/bin/gae_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Future<void> main() async {
// is inherently bad. We're allocating the logger (or getting back one) and
// then turning it off - there is no way to "filter". Luckily; the library
// does not set the level for the logger, making this just a little brittle.
hierarchicalLoggingEnabled = true;
for (final logName in ['neat_cache', 'neat_cache:redis']) {
final log = Logger(logName);
log.level = Level.WARNING;
Expand Down