mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-05 15:05:36 +02:00
feat(debug): add app configure item of debug mode to show debug console log message
This commit is contained in:
@@ -14,6 +14,7 @@ var _ = require('lodash'),
|
||||
validator = require('validator');
|
||||
|
||||
var whitelistedFields = ['firstName', 'lastName', 'email', 'username'];
|
||||
var mtDebug = require(path.resolve('./config/lib/debug'));
|
||||
|
||||
/**
|
||||
* Update user details
|
||||
@@ -114,7 +115,7 @@ exports.changeProfilePicture = function (req, res) {
|
||||
|
||||
// If file didn't exist, no need to reject promise
|
||||
if (unlinkError.code === 'ENOENT') {
|
||||
console.log('Removing profile image failed because file did not exist.');
|
||||
mtDebug.debugRed('Removing profile image failed because file did not exist.');
|
||||
return resolve();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user