feat(log): error display with separate color #31

This commit is contained in:
Alexey Kasyanchuk
2018-08-07 22:54:36 +03:00
parent 297baac3d3
commit ddfd43498d
9 changed files with 27 additions and 15 deletions

View File

@ -106,7 +106,7 @@ module.exports = async ({
sphinx.query('SELECT count(*) AS torrents, sum(size) AS sz FROM `torrents`', function (error, rows, fields) {
if(!rows) {
console.error(error)
logTE('statistic', error)
callback(undefined)
return;
}
@ -115,7 +115,7 @@ module.exports = async ({
sphinx.query('SELECT count(*) AS files FROM `files`', function (error, rows, fields) {
if(!rows) {
console.error(error)
logTE('statistic', error)
callback(undefined)
return;
}