logmanager_write_log did three different things - logged a message, flushed a file and rotated a file - none of which were performed in one go. Hence there's no reason to do all those things in that function.
logmanager_write_log did three different things - logged a message, flushed a file and rotated a file - none of which were performed in one go. Hence there's no reason to do all those things in that function.