Actions
Bug #57480
closedmgr/telemetry: log exceptions as "exception" instead of "error"
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
telemetry module
Target version:
-
% Done:
100%
Source:
Tags:
low-hanging-fruit backport_processed
Backport:
quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Description
See relevant code and fixes here:
except (json.decoder.JSONDecodeError, KeyError) as e:
- self.log.error("Error caught on {}.{}: {}".format(daemon_type, daemon_id, e))
+ self.log.exception("Error caught on {}.{}: {}".format(daemon_type, daemon_id, e))
continue
except (json.decoder.JSONDecodeError, KeyError) as e:
- self.log.error("Error caught on osd.{}: {}".format(osd_id, e))
+ self.log.exception("Error caught on osd.{}: {}".format(osd_id, e))
continue
except (KeyError, IndexError) as e:
- self.log.error('Unable to get host from device with id "{}": {}'.format(devid, e))
+ self.log.exception('Unable to get host from device with id "{}": {}'.format(devid, e))
continue
Actions