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
Updated by Laura Flores over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 48152
Updated by Yuri Weinstein over 1 year ago
Updated by Laura Flores over 1 year ago
- Status changed from Fix Under Review to Resolved
Updated by Konstantin Shalygin almost 1 year ago
- Status changed from Resolved to Pending Backport
Updated by Backport Bot almost 1 year ago
- Copied to Backport #59565: quincy: mgr/telemetry: log exceptions as "exception" instead of "error" added
Updated by Backport Bot almost 1 year ago
- Tags changed from low-hanging-fruit to low-hanging-fruit backport_processed
Updated by Laura Flores 10 months ago
- Translation missing: en.field_tag_list changed from low-hanging-fruit to low-hanging-fruit, open-source-day
Updated by Konstantin Shalygin 10 months ago
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
Actions