hey team, any instruction about how to turn on deb...
# troubleshoot
r
hey team, any instruction about how to turn on debug log for gms?
e
Hey @red-napkin-59945 how are you running GMS? Are you doing so via Gradle or Docker? If it’s via Gradle please run GMS using
./gradlew :metadata-service:war:run -Dlogback.debug=true
. You can find more details here https://datahubproject.io/docs/metadata-service/#start-via-command-line
If you want to run GMS using Docker you can find instructions for enabling debugging here https://datahubproject.io/docs/docker/development
s
If running in prod there are rolling debug logs already present https://datahubproject.io/docs/how/extract-container-logs/#step-2-find-the-log-files
r
@echoing-airport-49548 thanks for the info, actually I am not trying to attach a debuger on dev env. I would like to change the logger's level to DEBUG
@square-activity-64562 we are running docker image in Kubernetes, seems there is no way to get the debug log file in our setup
I remember log4j has some config to change the logger level. Do you guys know where to config log4j?
s
Even within the kubernetes pod there should be a debug file at that location. Are you unable to get inside the pod due to some restrictions?
r
correct, I am not about to get inside the pod due to some restriction
s
So if you want to be able to pass arguments via env variable because you cannot get inside the pod then you will have to change this file
Few options come to my mind right now • Send a PR with the new environment variables in that file allowing changing log level (Preferred solution) • Create your own gms image on top of the published image and replace this file • Talk to your infra team/security team to get the file. They can copy it from the pod and share it with you @echoing-airport-49548 already shared the command line args required https://datahubspace.slack.com/archives/C029A3M079U/p1649210076184869?thread_ts=1649191206.539199&cid=C029A3M079U
If you would like help in contributing please post in #contribute channel for help required