Open amessing opened 7 years ago
Our flushing issue there is a MemoryHandler around the FileHandler. File gets flushed at 10 MB or when the program closes.
One solution is have a competition mode that doesn't use the MemoryHandler
file = open(filename) file.write(line) file.flush() os.fsync(file)
The issue is
fh = logging.handlers.MemoryHandler(1024 1024 10, logging.ERROR, fh_)
if we have a comp mode
fh = fh_
then we will be good
At competition, the logs didn't save. What caused this?