Log timestamp error

Posted by Poromenos on Mon 21 Jun 2004 08:25 PM — 9 posts, 28,167 views.

Greece #0
I am timestamping my logs, and I noticed that the 3 last lines that come from the mud (when I quit) are wrongly timestamped to much later, sometimes about a minute after i press quit. It should be maybe a second later, but it's not. What's wrong?
Greece #1
Bump! :p
USA #2
I don't have this problem... I'm using HTML logging, are you?
Greece #3
No, plain text logging. I prefix every message with "[%H:%M:%S] ", and the last few lines are always written late.
USA #4
Funny... I prefix with basically the same thing, " %H:%M> ", and it seems to work perfectly. I'm guessing that it doesn't appear late on your screen?

Perhaps you have a multiline trigger running that "times out" after a moment? Nick, could that be a reason for this? It would explain why the text is in limbo for a moment before being logged.
Greece #5
I don't think so, I don't use multiline triggers much, and this was in old logs too. It shouldn't happen, the actual line appears in after a second or so and I have found that the log timestamp could be as later as a whole minute.
Australia Forum Administrator #6
I find that very bizarre.

A quick test shows that when I use that timestamp and quit, the last few lines are written with the correct time, and the log file closed.

Are you saying the last few lines are written but it somehow makes up a time a minute or so in the future for them? Kind of hard to believe.

Are you sure your clock and the system time agree?
Amended on Thu 24 Jun 2004 10:12 PM by Nick Gammon
Greece #7

[22:01:42] <af[IHY] hp[1351/1351] mv[216/216] wg[83/500] gol[3] usr[354/369] auc[]>
[22:01:42] As shadows dance and daggers glint, night falls and life begins...
[22:01:42] 
quit
[22:04:33] <af[IHY] hp[1351/1351] mv[216/216] wg[83/500] gol[3] usr[350/369] auc[plate platinum dragonscale breastplate]>Your surroundings begin to fade as a mystical swirling vortex of colors
[22:04:33] envelops your body... When you come to, things are not as they were.
[22:04:33] 
[22:04:33] A strange voice says, 'We await your return, Formotoni...'

My log files look like this... Hm, maybe I wasn't using the character for 3 minutes before i quit? Let me check.
Amended on Fri 25 Jun 2004 10:03 AM by Poromenos
Greece #8
Hm, yes, I might just not have been idle before I quit, and i got confused because i don't timestamp commands :/ Sorry about that.