fix log file management to keep all the log for a node