Skip to content

Commit 9d3f9da

Browse files
committed
sync-server: downgrade level for log "Failed to send"
Downgrade it from debug to trace. Signed-off-by: Tim Zhang <[email protected]>
1 parent e5a5373 commit 9d3f9da

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sync/server.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn start_method_handler_thread(
114114
// notify the connection dealing main thread to stop.
115115
control_tx
116116
.send(())
117-
.unwrap_or_else(|err| debug!("Failed to send {:?}", err));
117+
.unwrap_or_else(|err| trace!("Failed to send {:?}", err));
118118
break;
119119
}
120120
result = read_message(fd);
@@ -124,7 +124,7 @@ fn start_method_handler_thread(
124124
// notify the connection dealing main thread to stop.
125125
control_tx
126126
.send(())
127-
.unwrap_or_else(|err| debug!("Failed to send {:?}", err));
127+
.unwrap_or_else(|err| trace!("Failed to send {:?}", err));
128128
break;
129129
}
130130

@@ -133,7 +133,7 @@ fn start_method_handler_thread(
133133
trace!("notify client handler to create much more worker threads!");
134134
control_tx
135135
.send(())
136-
.unwrap_or_else(|err| debug!("Failed to send {:?}", err));
136+
.unwrap_or_else(|err| trace!("Failed to send {:?}", err));
137137
}
138138

139139
let mh;
@@ -152,7 +152,7 @@ fn start_method_handler_thread(
152152
// have exited.
153153
control_tx
154154
.send(())
155-
.unwrap_or_else(|err| debug!("Failed to send {:?}", err));
155+
.unwrap_or_else(|err| trace!("Failed to send {:?}", err));
156156
trace!("Socket error send control_tx");
157157
break;
158158
}
@@ -180,7 +180,7 @@ fn start_method_handler_thread(
180180
// exited.
181181
control_tx
182182
.send(())
183-
.unwrap_or_else(|err| debug!("Failed to send {:?}", err));
183+
.unwrap_or_else(|err| trace!("Failed to send {:?}", err));
184184
break;
185185
}
186186
continue;
@@ -203,7 +203,7 @@ fn start_method_handler_thread(
203203
// exited.
204204
control_tx
205205
.send(())
206-
.unwrap_or_else(|err| debug!("Failed to send {:?}", err));
206+
.unwrap_or_else(|err| trace!("Failed to send {:?}", err));
207207
break;
208208
}
209209
continue;
@@ -223,7 +223,7 @@ fn start_method_handler_thread(
223223
// exited.
224224
control_tx
225225
.send(())
226-
.unwrap_or_else(|err| debug!("Failed to send {:?}", err));
226+
.unwrap_or_else(|err| trace!("Failed to send {:?}", err));
227227
break;
228228
}
229229
}

0 commit comments

Comments
 (0)