Skip to content

Commit ff60a90

Browse files
committed
Downgrade loglevels for unimportant and frequent logs
Downgrade following logs: Failed to try send client thread quit Signed-off-by: Tim Zhang <tim@hyper.sh>
1 parent d50076b commit ff60a90

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/sync/server.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn start_method_handler_thread(
111111
// notify the connection dealing main thread to stop.
112112
control_tx
113113
.try_send(())
114-
.unwrap_or_else(|err| warn!("Failed to try send {:?}", err));
114+
.unwrap_or_else(|err| debug!("Failed to try send {:?}", err));
115115
break;
116116
}
117117
result = read_message(fd);
@@ -121,15 +121,15 @@ fn start_method_handler_thread(
121121
// notify the connection dealing main thread to stop.
122122
control_tx
123123
.try_send(())
124-
.unwrap_or_else(|err| warn!("Failed to try send {:?}", err));
124+
.unwrap_or_else(|err| debug!("Failed to try send {:?}", err));
125125
break;
126126
}
127127

128128
let c = wtc.fetch_sub(1, Ordering::SeqCst) - 1;
129129
if c < min {
130130
control_tx
131131
.try_send(())
132-
.unwrap_or_else(|err| warn!("Failed to try send {:?}", err));
132+
.unwrap_or_else(|err| debug!("Failed to try send {:?}", err));
133133
}
134134

135135
let mh;
@@ -148,7 +148,7 @@ fn start_method_handler_thread(
148148
// have exited.
149149
control_tx
150150
.try_send(())
151-
.unwrap_or_else(|err| warn!("Failed to try send {:?}", err));
151+
.unwrap_or_else(|err| debug!("Failed to try send {:?}", err));
152152
break;
153153
}
154154
_ => {
@@ -175,7 +175,7 @@ fn start_method_handler_thread(
175175
// exited.
176176
control_tx
177177
.try_send(())
178-
.unwrap_or_else(|err| warn!("Failed to try send {:?}", err));
178+
.unwrap_or_else(|err| debug!("Failed to try send {:?}", err));
179179
break;
180180
}
181181
continue;
@@ -198,7 +198,7 @@ fn start_method_handler_thread(
198198
// exited.
199199
control_tx
200200
.try_send(())
201-
.unwrap_or_else(|err| warn!("Failed to try send {:?}", err));
201+
.unwrap_or_else(|err| debug!("Failed to try send {:?}", err));
202202
break;
203203
}
204204
continue;
@@ -216,7 +216,7 @@ fn start_method_handler_thread(
216216
// exited.
217217
control_tx
218218
.try_send(())
219-
.unwrap_or_else(|err| warn!("Failed to try send {:?}", err));
219+
.unwrap_or_else(|err| debug!("Failed to try send {:?}", err));
220220
break;
221221
}
222222
}
@@ -476,7 +476,7 @@ impl Server {
476476
close(fd).unwrap_or(());
477477
reaper_tx_child.send(fd).unwrap();
478478

479-
info!("client thread quit");
479+
debug!("client thread quit");
480480
})
481481
.unwrap();
482482

0 commit comments

Comments
 (0)