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

Suppress DEBUG messages #15

Open
jimlund opened this issue Sep 2, 2021 · 6 comments
Open

Suppress DEBUG messages #15

jimlund opened this issue Sep 2, 2021 · 6 comments

Comments

@jimlund
Copy link

jimlund commented Sep 2, 2021

How can I suppress DEBUG messages from gor / gorpipe? I was able to turn off the INFO messages using log4j.properties.

Jim Lund

@sigmarkarl
Copy link
Contributor

sigmarkarl commented Sep 3, 2021

edit the logback.xml or logback-console.xml under the config directory. Change root level="warn" to root level="off"

@gmagnu
Copy link
Contributor

gmagnu commented Sep 6, 2021

logback-console.xml is the one used for gorpipe. The root level logger is set by default to "off" though.

@gmagnu
Copy link
Contributor

gmagnu commented Sep 6, 2021

There is though an audit logger that is set by default to DEBUG, it is possible that you seeing output from that logger. I was not awate that it was used in standard gorpipe usage. @jimlund to you have an example of the DEBUG output you are receiving?

@gorfather
Copy link
Contributor

Hi Jim - can you send me your email?

@jimlund
Copy link
Author

jimlund commented Sep 9, 2021

I am jlund256 :at: gmail.

@jimlund
Copy link
Author

jimlund commented Sep 9, 2021

Thanks for the help. It turned out to be path issues--I am running in Cygwin on Windows with Oracle Java. Cygwin translates C:\Users paths to /cygwin/c/Users, but between bash, gor, and java, things get messed up.

I was getting messages like:

16:12:02.541 [main] DEBUG org.gorpipe.base.config.ConfigManager - Config path determined from code source location
16:12:02.541 [main] DEBUG org.gorpipe.base.config.ConfigManager - Using configuration root path: C:\Users\jim.lund\Downloads\gorscripts-3.11.2-dist\lib/../config/
16:12:02.563 [main] DEBUG org.gorpipe.base.config.ConfigManager - Loaded configuration file C:\Users\jim.lund\Downloads\gorscripts-3.11.2-dist\lib/../config/gor.props.defaults
16:12:02.594 [main] DEBUG org.gorpipe.base.config.ConfigManager - Loaded configuration file C:\Users\jim.lund\Downloads\gorscripts-3.11.2-dist\lib/../config/gor.props.defaults
16:12:10.827 [main] DEBUG org.apache.commons.configuration.PropertiesConfiguration - FileName set to C:\Users\jim.lund\Downloads\gorscripts-3.11.2-dist\lib/../config/gor.props.defaults

I was able to suppress them by hard coding the path in the gorpipe script:

DEFAULT_JVM_OPTS='"-Djava.security.egd=file:/dev/./urandom" "-Dlogback.configurationFile=file:C:\Users\jim.lund\gorscripts-3.11.2-dist\config\logback.xml"'

It is a strange setup and not worth trying to support.

Cheers,

Jim

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

4 participants