disabling debug messages when environment is 'production'