Skip to content

Commit 2cf69c4

Browse files
vsilentCopilot
andcommitted
log: show API URL instead of dashboard bind address
- Replace misleading "Web Dashboard" startup line - Show user-facing API URL and map 0.0.0.0 -> 127.0.0.1 for display Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8d37e7b commit 2cf69c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ async fn run_serve() -> io::Result<()> {
104104
info!("Database: {}", database_url);
105105

106106
let app_url = format!("{}:{}", &app_host, &app_port);
107+
let display_host = if app_host == "0.0.0.0" {
108+
"127.0.0.1"
109+
} else {
110+
&app_host
111+
};
107112

108113
// Initialize database
109114
info!("Initializing database...");
@@ -127,7 +132,7 @@ async fn run_serve() -> io::Result<()> {
127132
info!(" GET /api/logs/summaries - List AI summaries");
128133
info!(" WS /ws - WebSocket for real-time updates");
129134
info!("");
130-
info!("Web Dashboard: http://{}:{}", app_host, app_port);
135+
info!("API started on http://{}:{}", display_host, app_port);
131136
info!("");
132137

133138
// Start HTTP server

0 commit comments

Comments
 (0)