cb109 / maxjob

:loudspeaker: Whiteboxed maxscript execution from the commandline.
5 stars 0 forks source link

Use wtc mode to disable log buffering #8

Closed cb109 closed 8 years ago

cb109 commented 8 years ago

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.

cb109 commented 8 years ago

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.