private constructor() {
this.started = false;
this.workerImplementation = null;
+ // Enable unconditionally for now
+ this.logUnhandledRejection();
+ this.logUncaughtException();
this.workerScript = path.join(
path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../'),
'charging-station',
public async start(): Promise<void> {
if (isMainThread && this.started === false) {
try {
- // Enable unconditionally for now
- this.logUnhandledRejection();
- this.logUncaughtException();
this.initializeCounters();
this.initializeWorkerImplementation();
await this.storage?.open();