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

Log from service published to /var/log/syslog #66

Open
maetulj opened this issue Apr 17, 2018 · 2 comments
Open

Log from service published to /var/log/syslog #66

maetulj opened this issue Apr 17, 2018 · 2 comments

Comments

@maetulj
Copy link

maetulj commented Apr 17, 2018

I am experiencing a problem with robot upstart on ROS Kinetic. I install my bringup launch file and it automatically starts on system startup. I also set --logdir and the logs are written there.
But the log messages from ROS (ROS_INFO, ROS_ERROR) are also written to /var/log/syslog. This does not happen when directly calling roslaunch, only when the service runs.

Example of a syslog line:
Apr 17 16:10:41 robot robot-start[31465]: #33[31m[ERROR] [1523974241.950112782]: Sick300 not connected, will try connecting again in 500 msec...#33[0m

This is problematic because syslog is quickly growing too big.

I tried the solution from:
but without any luck.

Is there a solution for this? Thank you.

@130s
Copy link
Contributor

130s commented Sep 22, 2019

What version of robot_upstart are you using?

Although I might be wrong, I can't think of a reason that robot_upstart by default prints to syslog even after briefly looking at the code. Looks like it used to before #14

It might be also worth noting that by --logdir arg you can specify the output directory.

@ahmetalperenvar
Copy link

I am facing the same issue right now. Maybe adding StandartOutput=null and StandartError=null lines to the [Service] section of the service file which is located at /etc/systemd/system/ is one solution. I have TCP messages using localhost do you have a similar thing in your system @maetulj ? I am asking this to understand the cause of the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants