fix author perms

This commit is contained in:
nora 2022-06-19 21:14:35 +02:00
parent d91ee43933
commit aa6e57b2fa
6 changed files with 87 additions and 46 deletions

View file

@ -154,7 +154,9 @@ async fn hello(ctx: Context<'_>) -> Result<()> {
}
fn setup_tracing(pretty: bool) {
let registry = Registry::default().with(EnvFilter::from_default_env());
let registry = Registry::default()
.with(EnvFilter::from_default_env())
.with(tracing_error::ErrorLayer::default());
if pretty {
let tree_layer = tracing_tree::HierarchicalLayer::new(2)