Skip to content

Commit

Permalink
Fixing journalctl after adapting for new linter (#249)
Browse files Browse the repository at this point in the history
* Fixing journalctl after adapting for new linter

* Adding new year
  • Loading branch information
maxzieba authored Feb 15, 2023
1 parent 531351a commit c62f143
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sr_logging_common/logging/journalctl_pub.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

0 comments on commit c62f143

Please sign in to comment.