Add logging
This commit is contained in:
parent
e953c7f258
commit
6e0ace4210
|
@ -1579,8 +1579,10 @@ class State {
|
|||
}
|
||||
persist() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (this.debug)
|
||||
if (this.debug) {
|
||||
core.debug('The state is not persisted in the debug mode');
|
||||
return;
|
||||
}
|
||||
const serialized = Array.from(this.processedIssuesIDs).join('|');
|
||||
const tmpDir = os_1.default.tmpdir();
|
||||
const file = path_1.default.join(tmpDir, crypto_1.default.randomBytes(8).readBigUInt64LE(0).toString());
|
||||
|
|
|
@ -33,7 +33,10 @@ export class State implements IState {
|
|||
|
||||
private static readonly ARTIFACT_NAME = '_stale_state';
|
||||
async persist() {
|
||||
if (this.debug) return;
|
||||
if (this.debug) {
|
||||
core.debug('The state is not persisted in the debug mode');
|
||||
return;
|
||||
}
|
||||
|
||||
const serialized = Array.from(this.processedIssuesIDs).join('|');
|
||||
|
||||
|
|
Loading…
Reference in New Issue