Skip to content

Commit a43ce4f

Browse files
remove restore step (#15)
1 parent 5adba78 commit a43ce4f

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

lib/logger.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,6 @@ class Logger {
198198
this.state[containerId] = { status: ContainerHandlingStatus.INITIALIZING };
199199
logger.info(`Handling container: ${containerId}, status: '${containerStatus}'`);
200200
const stepLogger = this.taskLogger.create(stepName, undefined, undefined, runCreationLogic);
201-
try {
202-
await stepLogger.restore(); // jshint ignore:line
203-
} catch (err) {
204-
const error = new CFError({
205-
cause: err,
206-
message: `Failed to restore step`
207-
});
208-
logger.error(error.toString());
209-
return;
210-
}
211201

212202
const logSizeLimit = receivedLogSizeLimit ? (parseInt(receivedLogSizeLimit) * 1000000) : undefined;
213203

test/logger.unit.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ describe('Logger tests', () => {
617617

618618
describe('should print an error in case firebase ref fails', () => {
619619

620-
it('error while create firebase logger ref', async () => {
620+
it.skip('error while create firebase logger ref', async () => {
621621
const startSpy = sinon.spy(() => {
622622
return Q.resolve();
623623
});

0 commit comments

Comments
 (0)