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

How do I enable DEBUG logging for Cruise Control? #2152

Closed
marcelloromani opened this issue May 20, 2024 · 2 comments
Closed

How do I enable DEBUG logging for Cruise Control? #2152

marcelloromani opened this issue May 20, 2024 · 2 comments

Comments

@marcelloromani
Copy link

I have tried setting

rootLogger.level=DEBUG

in log4j.properties but that didn't make any difference.

What am I missing?

@marcelloromani
Copy link
Author

Interesting information here https://stackoverflow.com/questions/48310498/filtering-level-of-logger-messages

Specifically about the filter.threshold.level property.

mhratson pushed a commit that referenced this issue Aug 30, 2024
…2181)

`log4j.properties` files are ignored in the test resources, after renamed, finally I was able to change the loglevels while unit/integration testing.

I'm not sure if it was the issue on issue #2152, but this would be the fix for tests. Prod should work with the log4j.properties file as that is passed with -Dlog4j.configurationFile java opt
@mhratson
Copy link
Contributor

mhratson commented Sep 1, 2024

i tried this locally and it worked:

diff --git a/config/log4j.properties b/config/log4j.properties
index ad3198a8..3ce9bc4a 100644
--- a/config/log4j.properties
+++ b/config/log4j.properties
@@ -2,7 +2,7 @@
 # Copyright 2017 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information.
 #
 
-rootLogger.level=INFO
+rootLogger.level=DEBUG
 appenders=console, kafkaCruiseControlAppender, operationAppender, requestAppender
 
 property.filename=./logs

@mhratson mhratson closed this as completed Sep 1, 2024
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

No branches or pull requests

2 participants