mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-20 15:04:20 +00:00
18 lines
337 B
JavaScript
18 lines
337 B
JavaScript
var ifPrint = true;
|
|
|
|
function setPrintStatus(status){
|
|
ifPrint = !!status;
|
|
}
|
|
|
|
function printLog(content,type){
|
|
if(!ifPrint) return;
|
|
|
|
var tip = content;
|
|
|
|
console.log(tip);
|
|
}
|
|
|
|
module.exports.printLog = printLog;
|
|
module.exports.setPrintStatus = setPrintStatus;
|
|
module.exports.T_TIP = 0;
|
|
module.exports.T_ERR = 1; |