Skip to content

Commit fe5f241

Browse files
committed
[jobs] Decreasing loglevel for resource back to info
1 parent 7284f2d commit fe5f241

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

api/parts/jobs/resource.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ class ResourceFaçade extends ResourceInterface {
343343
**/
344344
close() {
345345
if (this.isOpen) {
346-
log.w('Closing underlying resource %s from façade', this.id);
347-
log.w('Stack %j', new Error().stack);
346+
log.i('Closing underlying resource %s from façade', this.id);
347+
log.i('Stack %j', new Error().stack);
348348
return new Promise((resolve, reject) => {
349349
setTimeout(reject.bind(null, JOB.ERROR.TIMEOUT), RESOURCE_CMD_TIMEOUT);
350350
this.channel.once(CMD.CLOSED, () => {
@@ -381,7 +381,7 @@ class ResourceFaçade extends ResourceInterface {
381381
return Promise.resolve();
382382
}
383383
else {
384-
log.w('Opening underlying resource %s from façade', this.id);
384+
log.i('Opening underlying resource %s from façade', this.id);
385385
return new Promise((resolve, reject) => {
386386
let to = setTimeout(() => {
387387
reject(JOB.ERROR.TIMEOUT);
@@ -424,7 +424,7 @@ class ResourceFaçade extends ResourceInterface {
424424
**/
425425
resolve() {
426426
if (this._resolve) {
427-
log.w('[façade]: Resolving %s', this.job.channel);
427+
log.i('[façade]: Resolving %s', this.job.channel);
428428
this._resolve.apply(this, arguments);
429429
this.job.releaseResource(this).then(() => {
430430
log.i('[façade]: Released resource for %s', this.job.channel);
@@ -436,7 +436,7 @@ class ResourceFaçade extends ResourceInterface {
436436
this._resolve = this._reject = this.job.resource = null;
437437
}
438438
else {
439-
log.w('ResourceFaçade %s already returned, nothing to resolve', this.id);
439+
log.i('ResourceFaçade %s already returned, nothing to resolve', this.id);
440440
}
441441
}
442442

@@ -446,7 +446,7 @@ class ResourceFaçade extends ResourceInterface {
446446
**/
447447
reject(error) {
448448
if (this._reject) {
449-
log.w('[façade]: Rejecting %s', this.job.channel);
449+
log.i('[façade]: Rejecting %s', this.job.channel);
450450
this._reject.apply(this, arguments);
451451
this.job.releaseResource(this).then(() => {
452452
log.i('[façade]: Released resource for %s', this.job.channel);
@@ -458,7 +458,7 @@ class ResourceFaçade extends ResourceInterface {
458458
this._resolve = this._reject = this.job.resource = null;
459459
}
460460
else {
461-
log.w('ResourceFaçade %s already returned, nothing to reject with %j', this.id, error);
461+
log.i('ResourceFaçade %s already returned, nothing to reject with %j', this.id, error);
462462
}
463463
}
464464
}

0 commit comments

Comments
 (0)