How to debug the start of Guice enabled application?

2,540 views
Skip to first unread message

Asaf Mesika

unread,
Mar 13, 2016, 6:42:38 AM3/13/16
to google-guice
Hi,

We have an application we're transformed into Guice and are very happy with it.
To get some lifecycle events we are using Netflix's Governator.

We have an issue in production where the app get stuck on start, specifically building the Injector.

I see several beans info messages that some print in the c'tor.


I'm searching for a way to get the exact trace of which beans gets created so I'll know the bean creation which caused it to get stuck.

I'm used to Spring - there turning on DEBUG on org.springframework did the trick.


Thanks!

Asaf


Tavian Barnes

unread,
Mar 13, 2016, 10:07:52 PM3/13/16
to google-guice
Guice does a lot of logging with java.util.logging.Logger at low levels.  You can set the threshold for com.google.inject lower so they show up.
Reply all
Reply to author
Forward
0 new messages