Skip to content

systemstats: Warn when trying to add an existing object to SensorContainer

Arjen Hiemstra requested to merge work/ahiemstra/objectadd into master
  • systemstats: Warn when trying to add an existing object to SensorContainer

Rather than asserting and crashing, which just leaves people with non-working systemstats. Additionally be a bit more elaborate with regards to why we don't add the object so we have an easier time debugging this in the future.

BUG: 485025

  • systemstats: Warn when overwriting a property in SensorObject

The behaviour between SensorContainer and SensorObject is a little different, SensorContainer rejects objects that have the same ID as something inside the container while SensorObject silently overwrites them. This doesn't change that behaviour but does add a warning to SensorObject to at least warn when this happens.

Edited by Arjen Hiemstra

Merge request reports