It seems that openLog() supports an additional, undocumented mode:"wtc", which specifies that (quote)
"Write operations will not go through any intermediate cache, they will go directly to disk". Sounds good, we should give it a try and can then probably remove the flushLog() and closeLog()-every-time hack that is currently used.
Actually mode:"wtc" does not exist, openLog() will only accept a or w. There probably has been some confusion with openFile() which accepts mode:"wT", but we cannot use it here.
It seems that
openLog()
supports an additional, undocumentedmode:"wtc"
, which specifies that (quote) "Write operations will not go through any intermediate cache, they will go directly to disk". Sounds good, we should give it a try and can then probably remove theflushLog()
andcloseLog()
-every-time hack that is currently used.