mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-17 12:52:22 +01:00
opt(debug): optimization debug console print methods
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user