Subject: | Make "Internal error: Root Logger not initialized. more helpful |
I came across an "Internal error: Root Logger not initialized. ... during global destruction"
recently.
While I understand the issue and the fix, what was annoying in this case was that the exception
from Log4perl effectively hid the original exception that as trying to be logged.
This change
- die "Internal error: Root Logger not initialized.";
+ Carp::confess "Internal error: Root Logger not initialized."
meant I could see what the original exception message was in the stack trace.