Skip to content

Commit

Permalink
#3040 - Add default logInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoblit committed Sep 29, 2023
1 parent 2531bab commit a941033
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ketcher-core/src/application/ketcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { KetSerializer, MolfileFormat } from 'domain/serializers';
import { Struct } from 'domain/entities';
import assert from 'assert';
import { EventEmitter } from 'events';
import { LogInfo, runAsyncAction } from 'utilities';
import { LogInfo, LogLevel, runAsyncAction } from 'utilities';

const allowedApiSettings = {
'general.dearomatize-on-load': 'dearomatize-on-load',
Expand Down Expand Up @@ -80,7 +80,7 @@ function getStructure(
}

export class Ketcher {
logInfo: LogInfo = {};
logInfo: LogInfo;
#structService: StructService;
#formatterFactory: FormatterFactory;
#editor: Editor;
Expand Down Expand Up @@ -109,6 +109,11 @@ export class Ketcher {
this.#formatterFactory = formatterFactory;
this.#indigo = new Indigo(this.#structService);
this.#eventBus = new EventEmitter();
this.logInfo = {
isLoggingEnabled: false,
logLevel: LogLevel.ERROR,
showTrace: false,
};
}

get indigo() {
Expand Down

0 comments on commit a941033

Please sign in to comment.