improvement(module:graphql/index): switched error log debug->error

This commit is contained in:
Alexis Tyler
2019-10-26 16:38:38 +10:30
parent 5f4a3ce898
commit a2c3cabacc

View File

@@ -249,7 +249,7 @@ module.exports = function (
.catch(error => {
// Ensure we aren't leaking anything in production
if (process.env.NODE_ENV === 'production') {
log.debug(pluginOrModule, pluginOrModuleName, 'Error:', error.message);
log.error(pluginOrModule, pluginOrModuleName, 'Error:', error.message);
return new Error(error.message);
}