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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion rostwitter/scripts/tweet.py
Expand Up @@ -28,7 +28,9 @@ def __init__(self):

def tweet_cb(self, msg):
message = msg.data
rospy.loginfo(rospy.get_name() + " sending %s", message)
# base64 messages are noisy, so tweet log is suppressed
rospy.loginfo(rospy.get_name() + " sending %s",
''.join([message] if len(message) < 128 else message[0:128]+'......'))

# search word start from / and end with {.jpeg,.jpg,.png,.gif}
m = re.search('/\S+\.(jpeg|jpg|png|gif)', message)
Expand Down