Registered Member
|
Hi there. I'm trying to write a Kross script that will simply take regular expressions and match them to a torrent when it closes, and move to a destination all defined in a yaml file. I want to have a separate log file to monitor the activity in this script. Everything seems to be working, but my log file does not seem to be getting contents until I close Ktorrent. This is what I have done:
Can anyone tell me why I don't see line by line logging and how I fix it? Thanks. |
Moderator
|
Flush ought to write everything pending to disk. Maybe you can force it by calling del on the file object, that should force python to clean it up and write everything to disk.
|
Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]