Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rostwitter] Suppress tweet log #378

Merged
merged 2 commits into from Sep 9, 2022

Conversation

tkmtnt7000
Copy link
Member

Duplicates of knorth55#33

This PR suppresses tweet log.
If Base64 encoding texts are displayed in logs, logs are too dirty to see.

@tkmtnt7000 tkmtnt7000 mentioned this pull request Sep 2, 2022
14 tasks
@@ -28,7 +28,7 @@ def __init__(self):

def tweet_cb(self, msg):
message = msg.data
rospy.loginfo(rospy.get_name() + " sending %s", message)
rospy.logdebug(rospy.get_name() + " sending %s", message)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if loginfo is not noisy without bsae64 message, how abotut use loginfo + something like ' '.join([a if len(a) < 32 else a[0:32]+'...' for a in txt.split(' ')]) ?

If we already feel darty without base64, using logdebug make sense

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for advice. I think loginfo is not noisy without base64 message.
So, I fixed it in 6451728

Copy link
Member

@k-okada k-okada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thakyou

@k-okada k-okada merged commit af0233c into jsk-ros-pkg:master Sep 9, 2022
@tkmtnt7000 tkmtnt7000 deleted the PR-suppress-tweet-log-master branch September 9, 2022 09:42
k-okada added a commit to k-okada/jsk_3rdparty that referenced this pull request Dec 15, 2022
knorth55 pushed a commit to knorth55/jsk_3rdparty that referenced this pull request Dec 15, 2022
knorth55 pushed a commit to knorth55/jsk_3rdparty that referenced this pull request Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants