Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#2808 closed bug (Fixed)

Deluge Log File Not Working as Intended

Reported by: Doadin Owned by:
Priority: minor Milestone: 2.0.0
Component: Core Version: develop
Keywords: Cc:

Description

On a python 2.7 build writeing logs to a file doesnt work properly. if you set rotatiing logs it works fine however normal loging (filemode w?) the log is cleared every time it writes a new line. So instead of having a clear fresh log every time you open deluge what you have it just one line staying something about shuting down (or w.e. the last message is). What seems to be happening is it opens the file clears it writes the message closes then repeats every message.

Change History (8)

comment:1 by Bro, 8 years ago

On what OS are you testing this?

comment:2 by Bro, 8 years ago

Milestone: 1.3.132.0

comment:3 by Bro, 8 years ago

Can you test if this fixes the issue: https://github.com/bendikro/deluge/commit/58bc8b6ec79b4e9d120e6356fb142cbea61682e0

This may work if the problem is due to using WatchedFileHandler on Windows.

comment:4 by Doadin, 8 years ago

Currently on windows 10 it also happened on windows 8/8.1 if i remeber correctly. And yes i can test.

comment:5 by Doadin, 8 years ago

Last edited 8 years ago by Doadin (previous) (diff)

comment:6 by Doadin, 8 years ago

Appears to fix it! tested win 7 and win 10.

Last edited 8 years ago by Doadin (previous) (diff)

comment:7 by Calum, 8 years ago

Resolution: Fixed
Status: newclosed

Merged in develop: [58bc8b6ec7]

comment:8 by Calum, 6 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.