Skip to content

Commit c3d4e41

Browse files
committed
web: module name + simplelog
1 parent a6db2ba commit c3d4e41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/web.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use axum::{
1111
};
1212
use chrono::Local;
1313
use hyper::body::to_bytes;
14+
use simplelog::*;
1415
use std::collections::HashMap;
1516
use std::path::PathBuf;
1617
use std::sync::Arc;
@@ -20,6 +21,9 @@ use tokio::io::AsyncWriteExt;
2021
const TEMPLATE: &str = include_str!("../static/index.html");
2122
const PICO_CSS: &str = include_str!("../static/pico.min.css");
2223

24+
// module name for logging engine
25+
const NAME: &str = "<i><bright-black> web: </>";
26+
2327
#[derive(Clone)]
2428
pub struct AppState {
2529
pub config: SharedConfig,

0 commit comments

Comments
 (0)