Build logging changes

This commit is contained in:
mmcwilliams 2019-10-30 23:16:34 -04:00
parent 09431a6a05
commit 92172e19b1
2 changed files with 6 additions and 4 deletions

View File

@ -25,6 +25,7 @@ class Sequence {
this.active = false;
this.count = 0;
this.delay = 0;
log.info('start', { id: this.id, stopped: true });
};
this.intval = intval;
this.intval.sequence = function () {
@ -48,20 +49,21 @@ class Sequence {
this.id = v4_1.default();
this.delay = typeof options.delay !== 'undefined' ? options.delay : 0;
this.count = 0;
log.info({ id: this.id, started: true });
for (let i = 0; i < len; i++) {
if (multiple > 1) {
for (let x = 0; x < multiple; x++) {
await this.intval.frame();
log.info({ id: this.id, count: this.count });
log.info('start', { id: this.id, count: this.count });
this.count++;
}
}
else {
await this.intval.frame();
log.info({ id: this.id, count: this.count });
log.info('start', { id: this.id, count: this.count });
this.count++;
}
if (this.delay > 0) {
if (this.delay > 0 && i < len - 1) {
await delay_1.delay(this.delay);
}
if (!this.active) {

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sequence/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;;;AAEZ,iDAA2B;AAC3B,MAAM,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;AACrC,oCAAiC;AAEjC,MAAM,WAAW,GAAG,UAAU,CAAC;AAc/B,+BAA+B;AAC/B,MAAa,QAAQ;IAUpB;;;;QAII;IAEJ,YAAa,MAAY;QAbjB,WAAM,GAAa,KAAK,CAAA;QAExB,UAAK,GAAY,CAAC,CAAA;QAClB,UAAK,GAAY,CAAC,CAAA;QA6D1B;;YAEI;QACG,SAAI,GAAG;YACb,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;YACnB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAA;YACd,IAAI,CAAC,KAAK,GAAG,CAAC,CAAA;QACf,CAAC,CAAA;QAzDA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,MAAM,C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