[mythtv] Timestamps on backend log

Robert Tsai rtsai1111 at comcast.net
Fri Aug 12 16:51:44 UTC 2005


On Fri, Aug 12, 2005 at 11:58:43AM -0400, Preston Crow wrote:
> I've noticed that the backend log doesn't have timestamps, but the
> frontend log does.  Would it be a big deal to add them?
> 
> It looks like it would require some work on the function av_log()
> with a scan through the string for newlines (at least one place uses
> multiple calls with only the last one having a newline).  The other
> option would be to require all log messages to be passed as a unit,
> cleaning up any place that sends partial lines.  I'm in favor of the
> second option.
> 
> I could give it a go if there's agreement that it's a good idea and
> someone more familiar with the code doesn't want to do it.

My backend logfile has timestamps:

	2005-08-12 11:24:48.978 MainServer::HandleAnnounce Playback
	2005-08-12 11:24:48.988 adding: myth as a client (events: 0)
	2005-08-12 11:24:53.367 MainServer::HandleAnnounce Playback
	2005-08-12 11:24:53.372 adding: myth as a client (events: 0)

I think it depends on whether the text in question was generated using
a call to cerr/printf (no timestamp) or VERBOSE (generates a
timestamp).

--Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050812/49c45142/attachment.pgp


More information about the mythtv-dev mailing list