[Pidgin] #15429: Chat history log file time stamp updating
Pidgin
trac at pidgin.im
Sat Dec 15 12:53:30 EST 2012
#15429: Chat history log file time stamp updating
-------------------------------------------------+-------------------------
Reporter: ahmedp | Owner:
Type: defect | Status: closed
Milestone: | Component: plugins
Version: 2.10.6 | Resolution: worksforme
Keywords: timestamp time stamp chat history |
log |
-------------------------------------------------+-------------------------
Comment (by datallah):
Oh, you mean the file modified time, not the file name, sorry I
misunderstood.
What you're seeing is a side-effect of [http://msdn.microsoft.com/en-
us/library/windows/desktop/ms724290%28v=vs.85%29.aspx how file access
works on Windows] - the file modify time isn't updated until we close the
file handle.
The way that logging works, we create a file once, keep a reference to the
file handle and keep appending to it until we're done with that log file.
I don't think it would be reasonable to change that behavior to close and
reopen the file each time, it would add non-trivial overhead and
complicate the situation by adding more potential error points.
So, I guess the appropriate Resolution is "wontfix" rather than
"worksforme". Note that the logging implementation is pluggable - you
could write a plugin that does what you want.
--
Ticket URL: <https://developer.pidgin.im/ticket/15429#comment:3>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list