refs #4550 Log debug mode enabled when enabled
gitea/printnatura/pipeline/head This commit looks good
Details
gitea/printnatura/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d6fe231cea
commit
d3ca5c2e87
|
@ -24,6 +24,8 @@ class PrintServer {
|
|||
const decoration = '△▽'.repeat(10);
|
||||
const printnatura = colors.bgBlack.bold(' Print'.white + 'Natura '.green);
|
||||
console.log(`${decoration} ${printnatura} ${decoration}`);
|
||||
if (this.conf.debug)
|
||||
this.serverLog('log', 'Debug mode enabled'.yellow);
|
||||
if (this.conf.dryPrint)
|
||||
this.serverLog('log', 'Running in dry print mode, documents won\'t be printed'.yellow);
|
||||
if (this.conf.keepFile)
|
||||
|
@ -302,7 +304,6 @@ class PrintServer {
|
|||
if (index !== -1) this.jobs.splice(index, 1);
|
||||
setTimeout(() => this.getJobs());
|
||||
}
|
||||
|
||||
}
|
||||
jobLog(jobId, realm, message) {
|
||||
this.log(`Job[${colors.yellow(jobId)}]`, realm, message);
|
||||
|
|
Loading…
Reference in New Issue