Fix the bug of production.log not writable