use log::info instead of print

This commit is contained in:
Evan Almloff committed 2022-06-09 13:00:28 -05:00
1 parent aa9f5a1a42
commit 1d29f66cfc
1 file changed
+1 -1
+1 -1
View File
@@ -289,7 +289,7 @@ async fn hot_reload_handler(
Extension(state): Extension<Arc<HotReloadState>>,
) -> impl IntoResponse {
ws.on_upgrade(|mut socket| async move {
println!("🔥 Hot Reload WebSocket is connected.");
log::info!("🔥 Hot Reload WebSocket connected");
let mut rx = state.messages.subscribe();
loop {
let read_set_rsx = rx.recv();