fix logger in production