Fixed creation of log file in production environment