logging to file changed to append, not write