cleaned up logs
This commit is contained in:
parent
dbe83da336
commit
5f7177540c
2 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@ const logger = require('winston');
|
|||
|
||||
module.exports = {
|
||||
handleRequestError (error, res) {
|
||||
logger.error('Handling Request Error:', error);
|
||||
logger.error('Request Error,', error);
|
||||
if (error === 'NO_CLAIMS' || error === 'NO_FREE_PUBLIC_CLAIMS') {
|
||||
res.status(307).render('noClaims');
|
||||
} else if (error.response) {
|
||||
|
@ -14,7 +14,7 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
handlePublishError (error) {
|
||||
logger.error('Handling Publish Error:', error);
|
||||
logger.error('Publish Error,', error);
|
||||
if (error.code === 'ECONNREFUSED') {
|
||||
return 'Connection refused. The daemon may not be running.';
|
||||
} else if (error.response.data.error) {
|
||||
|
|
|
@ -22,7 +22,7 @@ module.exports = (winston, logLevel, logDir) => {
|
|||
colorize : true,
|
||||
prettyPrint: true,
|
||||
}),
|
||||
]
|
||||
],
|
||||
});
|
||||
|
||||
winston.handleExceptions(new winston.transports.File({
|
||||
|
|
Loading…
Reference in a new issue