Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.logger.error(
`Failed to process ${chainOptions.moduleAlias}:postTransaction action - ${postTxnResult.message}`
);
}
}
}
}
return;
}
});
let loggerConfig = await channel.invoke(
'app:getComponentConfig',
'logger',
);
this.logger = createLoggerComponent({...loggerConfig, ...this.options.logger});
try {
await mkdir(this.options.orderBookSnapshotBackupDirPath);
} catch (error) {
if (error.code !== 'EEXIST') {
this.logger.error(
`Failed to create snapshot directory ${
this.options.orderBookSnapshotBackupDirPath
} because of error: ${
error.message
}`
);
}
}
try {