mjpg_streamer: shut up logging?

... the more one pokes the more one sees .. ;-)

System: v.0.80.3 on raspi3 with cam / SD-Image

cat /var/log/messages
--
Feb 14 20:46:13 RepetierServer MJPG-streamer [647]: serving client: 127.0.0.1
Feb 14 20:47:13 RepetierServer MJPG-streamer [647]: serving client: 127.0.0.1
Feb 14 20:48:13 RepetierServer MJPG-streamer [647]: serving client: 127.0.0.1
.
.
.
Feb 14 20:56:13 RepetierServer MJPG-streamer [647]: serving client: 127.0.0.1
Feb 14 20:57:13 RepetierServer MJPG-streamer [647]: serving client: 127.0.0.1
--

Since I could not find any hints that /var/log is a in-memory-directory or something I only can assume the files residing there are physically on the SD-card and "adding" to it's lifetime.

My google-fu re "how to shut up mjpg_streamer's logging or at least turn it down to <warning|error> were somewhat fruitless, the only references I found were somewhat outdated ("can be set in configuration.h" (https://forums.zoneminder.com/viewtopic.php?t=13321)) and require a recomile which defeats the purpose of a SD-Image and/or updates since mjpeg_streamer seems to be a part of repetier.

While SDs *are* cheap, they tend to fail exactly when they shouldn't (mid-print, all shops are closed 'cos it is dark'o thirty...), not to mention the hassle with "where did I just put my USB-SDx-converter-Fob?"

There seems to be some cleanup in place (no way my /var/log/messages has measly 184KB, oldest entry is 2017-02-05) but a write on SD is still a write...

Any ideas here?

Comments

  • Not sure if it would work, but have you tried redirecting log as described but to /dev/null which is just a trash for any data and not writted to sd card.
Sign In or Register to comment.