You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors in the logger are very hard to debug. You need to supply names very specifically or you get weird errors.
This syntax worsk: osl.log.add_attributes(torqueSensor, ["torque"])
but this would fail with a weird error: osl.log.add_attributes(torqueSensor, "torque")
A check in the add_attributes method would be very helpful!
The text was updated successfully, but these errors were encountered:
Added a type check to the add_attributes() method. It will now raise a [LOGGER] attributes argument must be a list of strings (example: ['a','b']), not {type(attributes)} and fail elegantly when a wrong type is passed.
Errors in the logger are very hard to debug. You need to supply names very specifically or you get weird errors.
This syntax worsk:
osl.log.add_attributes(torqueSensor, ["torque"])
but this would fail with a weird error:
osl.log.add_attributes(torqueSensor, "torque")
A check in the
add_attributes
method would be very helpful!The text was updated successfully, but these errors were encountered: