diff --git a/src/helpers/logger.js b/src/helpers/logger.js index 01ae47b8..aad71f43 100644 --- a/src/helpers/logger.js +++ b/src/helpers/logger.js @@ -5,7 +5,6 @@ import loggingEndpointMethods from "@/constants/logging-endpoint-methods"; import headerKeys from "@/constants/header-keys"; -const store = useMainStore(); export class Logger { logInformation(message, details) { this.writeLogEntry( @@ -39,6 +38,8 @@ export class Logger { } writeLogEntry(endpoint, logEntry) { + const store = useMainStore(); + return new Promise((resolve, reject) => { // If running locally or in the Dev environment show the log entries in the console. if (