From c62f1432edd425a4fb1d8111b57290f8c15a4a5c Mon Sep 17 00:00:00 2001 From: Maximilian Zieba <77073326+maxzieba@users.noreply.github.com> Date: Wed, 15 Feb 2023 10:04:27 +0000 Subject: [PATCH] Fixing journalctl after adapting for new linter (#249) * Fixing journalctl after adapting for new linter * Adding new year --- sr_logging_common/logging/journalctl_pub.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sr_logging_common/logging/journalctl_pub.py b/sr_logging_common/logging/journalctl_pub.py index df70139b..6f299abe 100755 --- a/sr_logging_common/logging/journalctl_pub.py +++ b/sr_logging_common/logging/journalctl_pub.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2019, 2022 Shadow Robot Company Ltd. +# Copyright 2019, 2022-2023 Shadow Robot Company Ltd. # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free @@ -33,11 +33,11 @@ polling_object = select.poll() polling_object.register(process.stdout) - while not rospy.is_shutdown(): - if polling_object.poll(100): - journal_log_line = process.stdout.readline() - if journal_log_line: - journal_msg = journal_log() - journal_msg.data = journal_log_line.strip() - journal_msg.timestamp = rospy.get_rostime() - pub.publish(journal_msg) + while not rospy.is_shutdown(): + if polling_object.poll(100): + journal_log_line = process.stdout.readline() + if journal_log_line: + journal_msg = journal_log() + journal_msg.data = journal_log_line.strip() + journal_msg.timestamp = rospy.get_rostime() + pub.publish(journal_msg)