fix logging date not flushed