Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitblit hooks logs

Tags:

groovy

gitblit

I'm currently trying to create a hook for Gitblit in Groovy, the problem I'm facing is that I don't know how to debug it. I think it's failing due to some missing library, but I have no idea where I can see why it is failing.

Is there some way to configure a log for hooks so I'm able to see the exceptions that are being thrown?

like image 431
Federico Nafria Avatar asked Feb 02 '26 12:02

Federico Nafria


1 Answers

Exceptions in the groovy hooks are automatically logged to the container's logging system.

The groovy hooks run in the same classloader as Gitblit so unless you are adding new libraries in your script via Grapes then your hook has full access to all of Gitblit and is unlikely failing due to a missing library.

like image 130
James Moger Avatar answered Feb 04 '26 05:02

James Moger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!