<br><br><div class="gmail_quote">2009/5/20 Arjen de Korte <span dir="ltr">&lt;<a href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</a>&gt;</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 &lt;<a href="mailto:aquette.dev@gmail.com" target="_blank">aquette.dev@gmail.com</a>&gt;:<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 &quot;%H:%M:%S: msg&quot;)<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&#39;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&#39;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&#39;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&amp;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>