Skip to content

Commit 394c138

Browse files
committed
Lower log level in tight places to trace
1 parent 80bf41b commit 394c138

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/reactor.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,36 +173,36 @@ impl<const N: usize> Registrations<N> {
173173
fds.set(event_fd, Event::Read);
174174
max = Some(max.map_or(event_fd, |max| max.max(event_fd)));
175175

176-
debug!("Set event FD: {event_fd}");
176+
trace!("Set event FD: {event_fd}");
177177
}
178178

179179
for registration in &self.vec {
180180
for event in EnumSet::ALL {
181181
if registration.wakers[event as usize].is_some() {
182182
fds.set(registration.fd, event);
183183

184-
debug!("Set registration FD: {}/{event:?}", registration.fd);
184+
trace!("Set registration FD: {}/{event:?}", registration.fd);
185185
}
186186

187187
max = Some(max.map_or(registration.fd, |max| max.max(registration.fd)));
188188
}
189189
}
190190

191-
debug!("Max FDs: {max:?}");
191+
trace!("Max FDs: {max:?}");
192192

193193
Ok(max)
194194
}
195195

196196
#[allow(deprecated)]
197197
fn update_events(&mut self, fds: &Fds) -> io::Result<()> {
198-
debug!("Updating events");
198+
trace!("Updating events");
199199

200200
self.consume_notification()?;
201201

202202
for registration in &mut self.vec {
203203
for event in EnumSet::ALL {
204204
if fds.is_set(registration.fd, event) {
205-
debug!("Registration FD is set: {}/{event:?}", registration.fd);
205+
trace!("Registration FD is set: {}/{event:?}", registration.fd);
206206

207207
registration.events |= event;
208208
if let Some(waker) = registration.wakers[event as usize].take() {
@@ -300,7 +300,7 @@ impl<const N: usize> Registrations<N> {
300300
)
301301
})?;
302302

303-
debug!("Consumed notification");
303+
trace!("Consumed notification");
304304

305305
Ok(true)
306306
} else {
@@ -395,7 +395,7 @@ impl<const N: usize> Reactor<N> {
395395
Err(err) => Err(err),
396396
Ok(None) => unreachable!("EventFD is not there?"),
397397
Ok(Some(max)) => {
398-
debug!("Start select");
398+
trace!("Start select");
399399

400400
let result = syscall_los!(unsafe {
401401
sys::select(
@@ -407,7 +407,7 @@ impl<const N: usize> Reactor<N> {
407407
)
408408
});
409409

410-
debug!("End select");
410+
trace!("End select");
411411

412412
result.map(|_| ())
413413
}

0 commit comments

Comments
 (0)