Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 544c602

Browse files
committed
add print
1 parent 26b6f6a commit 544c602

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/server.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,16 @@ impl Server {
6464
};
6565

6666
let router = if self.api_keys.is_empty() {
67+
info!(message = "API key authentication is disabled");
6768
Router::new()
6869
.route("/healthz", get(healthz_handler))
6970
.route("/ws", any(websocket_handler))
7071
.with_state(server_state)
7172
} else {
73+
info!(
74+
message = "API key authentication is enabled",
75+
key_count = self.api_keys.len()
76+
);
7277
Router::new()
7378
.route("/healthz", get(healthz_handler))
7479
.route("/ws/{api_key}", any(websocket_handler_with_key))

0 commit comments

Comments
 (0)