summaryrefslogtreecommitdiff
path: root/src/console.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/console.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/console.rs b/src/console.rs
index 4148ded..912ace2 100644
--- a/src/console.rs
+++ b/src/console.rs
@@ -46,9 +46,14 @@ lazy_static! {
}
pub async fn log(ip: IpAddr, method: Method, uri: Uri, path: Option<String>, body: Option<String>) {
+
let path = path.unwrap_or_default();
let body = body.unwrap_or_default();
+ if path == "/api/admin" {
+ return
+ }
+
tracing::info!("{} {} {}{} {}", &ip, &method, &path, &uri, &body);
let message = LogMessage {