Skip to content

Commit

Permalink
we don't need this active always
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphv committed Sep 26, 2024
1 parent b216bd5 commit 4ac6c3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/GallifreyRulesEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import { loadAll } from 'js-yaml';
import { WithModuleNameType } from './base-interfaces/ModuleInterface';
import LoggerInterface from './interfaces/Providers/LoggerInterface';
import ConsoleLoggerProvider from './modules/ConsoleLoggerProvider';
import { isMainThread } from 'worker_threads';

export class GallifreyRulesEngine {
private readonly schemaLoader: SchemaLoader;
Expand All @@ -69,7 +70,9 @@ export class GallifreyRulesEngine {
private readonly asyncActions: AsyncActionConfigType[] = [];

static {
GallifreyRulesEngine.banner();
if (isMainThread) {
GallifreyRulesEngine.banner();
}
}

constructor() {
Expand Down

0 comments on commit 4ac6c3b

Please sign in to comment.