You want to configure it using `go-agent-log4j.properties` in the directory where you installed the go agent.
On Mon, Jul 18, 2016 at 12:33 PM Gerd Katzenbeisser < [email protected]> wrote: > Hi @all! > > The agents on one of our build cannot connect to the server anymore. > > 2016-07-18 08:49:36,113 [loopThread] INFO > go.agent.service.SslInfrastructureService:93 - [Agent Registration] > Starting to register agent > 2016-07-18 08:49:36,129 [loopThread] ERROR > go.agent.service.SslInfrastructureService:112 - [Agent Registration] There > was a problem registering with the go server. > java.lang.StringIndexOutOfBoundsException: String index out of range: -4 > at java.lang.String.charAt(Unknown Source) > at org.bouncycastle.util.encoders.Base64Encoder.decode(Unknown Source) > at org.bouncycastle.util.encoders.Base64.decode(Unknown Source) > at org.bouncycastle.util.io.pem.PemReader.loadObject(Unknown Source) > at org.bouncycastle.util.io.pem.PemReader.readPemObject(Unknown Source) > at com.thoughtworks.go.security.Registration.fromJson(Registration.java:49) > > I want to enable the debug log level to get more infos about what is going > wrong. But I don't know how to do that. What I tried so far is: > > > - Change all lines mentioning log level INFO to DEBUG in > config/log4j.properties > - Uncomment the line mentioning Agent Debug in wrapper-agent.conf > set.JVM_DEBUG=-Xdebug > -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%JVM_DEBUG_PORT% > - Set all wrapper.*.loglevel to DEBUG in wrapper-agent.conf > > But I still only get Info level. How do I correctly enable the debug log > level? > > greets > Gerd > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
