Skip to content

Commit 57e5e3b

Browse files
authored
Merge pull request containerd#72 from Tim-Zhang/warn-info-to-debug
Downgrade loglevels for unimportant and frequent logs
2 parents d50076b + dc5c669 commit 57e5e3b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ttrpc"
3-
version = "0.4.11"
3+
version = "0.4.12"
44
authors = ["The AntFin Kata Team <kata@list.alibaba-inc.com>"]
55
edition = "2018"
66
license = "Apache-2.0"

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)