Logging error

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Logging error

Post by *roentgen »

My usual log looks like this:
24.11.2007 09:40:28: Program start (user/calc)
Ever since I started TC from within BartPE, which produced something like:
12/23/2007 16:32:28: Program start (SYSTEM/BARTPE-11273)
logging seems to have stopped.

Just today I needed something from the log and very strange I received an error:
---------------------------
totalcmd.log
---------------------------
Access denied on file
'totalcmd.log'!
---------------------------
OK
---------------------------
Also, I have a log file 'totalcmd.20080712.log' which contains entries from 23 dec 2007.
23.12.2007 15:24:33: Program start (user/calc)
edit: I am able to reproduce it in 50% of cases. When TC starts with 'totalcmd.log' which contains

Code: Select all

12/23/2007 16:32:28: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:35:20: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:41:59: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:42:06: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:42:22: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:42:47: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:43:36: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:43:40: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:44:04: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:44:06: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:44:24: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:44:25: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:45:36: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:45:45: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:45:56: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:46:08: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:46:23: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:47:08: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:47:10: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:47:42: Program shutdown (SYSTEM/BARTPE-11273)
12/23/2007 16:48:13: Program start (SYSTEM/BARTPE-11273)
12/23/2007 16:50:30: Program shutdown (SYSTEM/BARTPE-11273)
a new file (totalcmd.20080712.log) is created with the same contents.
TC for Linux please!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Where is that log file created? TC re-opens the log file for each log entry, so apparently it fails to open the file for subsequent calls. Another reason could be that logging is enabled, but all log options are disabled, so only startup and shutdown are logged...
Author of Total Commander
https://www.ghisler.com
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

Where is that log file created?
I have logging set at "%COMMANDER_PATH%\Logs\totalcmd.log" with rotation every day at midnight.
TC re-opens the log file for each log entry, so apparently it fails to open the file for subsequent calls.
That's the main issue :wink:
Another reason could be that logging is enabled, but all log options are disabled, so only startup and shutdown are logged...
Not really. Nothing was logged (no more log files were created) since 23 dec 2007 until yesterday.
TC for Linux please!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I remember that this was a log file rename problem. Try removing all old log files, e.g. by moving them to a different directory.
Author of Total Commander
https://www.ghisler.com
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

I already did that. See my edit above. I said 50% of cases because it didn't happen once for whatever reason.
TC for Linux please!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can anyone still reproduce this very old error? I couldn't reproduce it any more, so I don't know what to do about the error...
Author of Total Commander
https://www.ghisler.com
Post Reply