Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def parse_sensors_output(node: Node, output):
try:
s = parse_sensor_line(line)
except Exception as exc:
node.get_logger().warn(
node.get_logger().warning(
'Unable to parse line "%s", due to %s', line, exc
)
if s is not None:
Expand Down
4 changes: 2 additions & 2 deletions diagnostic_updater/diagnostic_updater/_diagnostic_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,13 @@ def update(self):
warn_nohwid = False

if self.verbose and status.level != b'\x00':
self.node.get_logger().warn(
self.node.get_logger().warning(
'Non-zero diagnostic status. Name: %s, status\
%s: %s' % (status.name, str(status.level),
status.message))

if warn_nohwid and not self.warn_nohwid_done:
self.node.get_logger().warn(
self.node.get_logger().warning(
'diagnostic_updater: No HW_ID was set. This is probably\
a bug. Please report it. For devices that do not have a\
HW_ID, set this value to none. This warning only occurs\
Expand Down
Loading