<br><br><div class="gmail_quote">2009/5/20 Arjen de Korte <span dir="ltr"><<a href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Citeren Arnaud Quette <<a href="mailto:aquette.dev@gmail.com" target="_blank">aquette.dev@gmail.com</a>>:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Log:<br>
Enable timestamp on output messages (format "%H:%M:%S: msg")<br>
<br>
</blockquote>
I think this should only be done for messages that are sent to stderr. In<br>
most cases, syslog will already prepend a timestamp, so this is probably<br>
redundant.<br>
<br>
</blockquote>
right, I missed that point in the end.<br>
I'll jump on your other mail on that point...<br>
</blockquote>
<br></div>
I already have a patch waiting to change this. It prepends the elapsed time (seconds and microseconds) since the first upsdebug() command by default without requiring any additional command line options. We're probably more interested in the elapsed time since the program started anyway, instead of wall clock time when debugging something.<br>
</blockquote></div><br>right, it's best for our use case.<br>a good thing would be to add the start time (at driver startup) or an option to turn this into timestamps when debugging cross components (like driver-upsd communication) to avoid recalculation.<br>
<br>do you need an action on my side to revert the previous timestamp patch?<br><br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&D - Eaton - <a href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a><br>