diff options
author | FxQnLr <[email protected]> | 2024-04-10 20:15:39 +0200 |
---|---|---|
committer | FxQnLr <[email protected]> | 2024-04-10 20:15:39 +0200 |
commit | 69d3e0e6564b416637978a69f0a035066aea4759 (patch) | |
tree | 90c5b80a808f9c71cd3440add52b023973ae5b3b /src/main.rs | |
parent | 07740f3d985b4cc921b69cd45ec9191a2daecd67 (diff) | |
download | webol-69d3e0e6564b416637978a69f0a035066aea4759.tar webol-69d3e0e6564b416637978a69f0a035066aea4759.tar.gz webol-69d3e0e6564b416637978a69f0a035066aea4759.zip |
Closes #30 and #27. At least a little
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 8af8c63..204c318 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -10,7 +10,7 @@ use dashmap::DashMap; | |||
10 | use std::{env, sync::Arc}; | 10 | use std::{env, sync::Arc}; |
11 | use time::UtcOffset; | 11 | use time::UtcOffset; |
12 | use tokio::sync::broadcast::{channel, Sender}; | 12 | use tokio::sync::broadcast::{channel, Sender}; |
13 | use tracing::{info, level_filters::LevelFilter}; | 13 | use tracing::{info, level_filters::LevelFilter, trace}; |
14 | use tracing_subscriber::{ | 14 | use tracing_subscriber::{ |
15 | fmt::{self, time::OffsetTime}, | 15 | fmt::{self, time::OffsetTime}, |
16 | prelude::*, | 16 | prelude::*, |
@@ -89,11 +89,12 @@ async fn main() -> color_eyre::eyre::Result<()> { | |||
89 | .from_env_lossy(), | 89 | .from_env_lossy(), |
90 | ) | 90 | ) |
91 | .init(); | 91 | .init(); |
92 | trace!("logging initialized"); | ||
92 | 93 | ||
93 | Device::setup()?; | 94 | Device::setup()?; |
94 | 95 | ||
95 | let version = env!("CARGO_PKG_VERSION"); | 96 | let version = env!("CARGO_PKG_VERSION"); |
96 | info!("start webol v{}", version); | 97 | info!(?version, "start webol"); |
97 | 98 | ||
98 | let (tx, _) = channel(32); | 99 | let (tx, _) = channel(32); |
99 | 100 | ||