canonical / charms.reactive

Framework for developing charms and relations using the reactive pattern
Apache License 2.0
22 stars 34 forks source link

Explicitly log uncaught exceptions with juju-log at ERROR level #147

Open johnsca opened 6 years ago

johnsca commented 6 years ago

It seems that the default logging level for models was reduced some time back. This makes the logs much less noisy and saves quite a bit of space, but it has the unfortunate side effect of making debugging charm failures from logs more difficult, as most failure messages only show up as stderr output. It would probably be worth adding explicit logging of uncaught exceptions to the reactive framework so that they are clearly visible in the logs.

johnsca commented 6 years ago

See: https://lists.ubuntu.com/archives/juju/2017-November/009711.html