From 219954882f2e4e6ce6b68efb880e9e523ed391ec Mon Sep 17 00:00:00 2001 From: Kritika Singh Date: Tue, 16 Jul 2019 16:29:48 +0530 Subject: [PATCH] updated README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 2a056c0..9967f7b 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,23 @@ For a given Authorization Configuration verify if the given password file can be ### Enable Debug Logs +#### If you are on GoCD version 19.6 and above: + +Edit the file `wrapper-properties.conf` on your GoCD server and add the following options. The location of the `wrapper-properties.conf` can be found in the [installation documentation](https://docs.gocd.org/current/installation/installing_go_server.html) of the GoCD server. + + ```properties +# We recommend that you begin with the index `100` and increment the index for each system property +wrapper.java.additional.100=-Dplugin.cd.go.authentication.passwordfile.log.level=debug +``` + +If you're running with GoCD server 19.6 and above on docker using one of the supported GoCD server images, set the environment variable `GOCD_SERVER_JVM_OPTIONS`: + + ```shell +docker run -e "GOCD_SERVER_JVM_OPTIONS=-Dplugin.cd.go.authentication.passwordfile.log.level=debug" ... +``` + +#### If you are on GoCD version 19.5 and lower: + * On Linux: Enabling debug level logging can help you troubleshoot an issue with this plugin. To enable debug level logs, edit the file `/etc/default/go-server` (for Linux) to add: