downgrade some recoverable errors to warnings
This commit is contained in:
parent
9610f31e44
commit
64a57a4cc8
|
@ -473,7 +473,7 @@ pub fn schedule_initial_render<F: GLGraphicsBackend + 'static, Data: 'static>(
|
|||
SwapBuffersError::AlreadySwapped => {}
|
||||
SwapBuffersError::TemporaryFailure(err) => {
|
||||
// TODO dont reschedule after 3(?) retries
|
||||
error!(renderer.log, "Failed to submit page_flip: {}", err);
|
||||
warn!(renderer.log, "Failed to submit page_flip: {}", err);
|
||||
let handle = evt_handle.clone();
|
||||
evt_handle.insert_idle(move |_| schedule_initial_render(renderer, &handle));
|
||||
}
|
||||
|
|
|
@ -380,7 +380,7 @@ impl<S: SessionNotifier, Data: 'static> UdevHandlerImpl<S, Data> {
|
|||
|fd| match FallbackDevice::new(SessionFd(fd), true, self.logger.clone()) {
|
||||
Ok(drm) => Some(drm),
|
||||
Err(err) => {
|
||||
error!(self.logger, "Skipping drm device, because of error: {}", err);
|
||||
warn!(self.logger, "Skipping drm device, because of error: {}", err);
|
||||
None
|
||||
}
|
||||
},
|
||||
|
@ -388,14 +388,14 @@ impl<S: SessionNotifier, Data: 'static> UdevHandlerImpl<S, Data> {
|
|||
.and_then(|drm| match GbmDevice::new(drm, self.logger.clone()) {
|
||||
Ok(gbm) => Some(gbm),
|
||||
Err(err) => {
|
||||
error!(self.logger, "Skipping gbm device, because of error: {}", err);
|
||||
warn!(self.logger, "Skipping gbm device, because of error: {}", err);
|
||||
None
|
||||
}
|
||||
})
|
||||
.and_then(|gbm| match EglDevice::new(gbm, self.logger.clone()) {
|
||||
Ok(egl) => Some(egl),
|
||||
Err(err) => {
|
||||
error!(self.logger, "Skipping egl device, because of error: {}", err);
|
||||
warn!(self.logger, "Skipping egl device, because of error: {}", err);
|
||||
None
|
||||
}
|
||||
})
|
||||
|
@ -636,7 +636,7 @@ impl DrmRenderer {
|
|||
}
|
||||
|
||||
if let Err(err) = result {
|
||||
error!(self.logger, "Error during rendering: {:?}", err);
|
||||
warn!(self.logger, "Error during rendering: {:?}", err);
|
||||
let reschedule = match err {
|
||||
SwapBuffersError::AlreadySwapped => false,
|
||||
SwapBuffersError::TemporaryFailure(err) => {
|
||||
|
|
|
@ -191,7 +191,7 @@ impl<A: AsRawFd + Clone + 'static> FallbackDevice<AtomicDrmDevice<A>, LegacyDrmD
|
|||
match AtomicDrmDevice::new(fd.clone(), disable_connectors, log.clone()) {
|
||||
Ok(dev) => Ok(FallbackDevice::Preference(dev)),
|
||||
Err(err) => {
|
||||
error!(log, "Failed to initialize preferred AtomicDrmDevice: {}", err);
|
||||
warn!(log, "Failed to initialize preferred AtomicDrmDevice: {}", err);
|
||||
info!(log, "Falling back to fallback LegacyDrmDevice");
|
||||
Ok(FallbackDevice::Fallback(LegacyDrmDevice::new(
|
||||
fd,
|
||||
|
|
Loading…
Reference in New Issue