aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-24 15:21:55 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-24 15:21:55 +0100
commit9afd2ea337953ae25517c7bf65406dd8cd0fd375 (patch)
treeb6f1391e410a12b4fdc25fa65d992fd06ad218c9 /src/main.rs
parent9a265a09e24f6bebf6a6e327da5dd9dfd4dfa866 (diff)
downloadaerogramme-9afd2ea337953ae25517c7bf65406dd8cd0fd375.tar.gz
aerogramme-9afd2ea337953ae25517c7bf65406dd8cd0fd375.zip
Dovecot auth types
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 34d5a11..72bce83 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -148,6 +148,16 @@ enum AccountManagement {
},
}
+#[cfg(tokio_unstable)]
+fn tracer() {
+ console_subscriber::init();
+}
+
+#[cfg(not(tokio_unstable))]
+fn tracer() {
+ tracing_subscriber::fmt::init();
+}
+
#[tokio::main]
async fn main() -> Result<()> {
if std::env::var("RUST_LOG").is_err() {
@@ -161,7 +171,7 @@ async fn main() -> Result<()> {
std::process::abort();
}));
- tracing_subscriber::fmt::init();
+ tracer();
let args = Args::parse();
let any_config = if args.dev {