opt(debug): optimization debug console print methods

This commit is contained in:
OldHawk
2017-12-24 14:31:44 +08:00
parent 328a05e437
commit e3865ef4f1

View File

@@ -14,7 +14,9 @@ var appConfig = config.meanTorrentConfig.app;
*/
module.exports.info = function (obj, section) {
if (appConfig.showDebugLog) {
console.log(section ? ' - ' + section : '');
if (section) {
console.log(section);
}
console.log(obj);
}
};