Skip to content

Commit

Permalink
fix stack call wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 25, 2024
1 parent 5ed690c commit 762df88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/logging/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,10 @@ export class CustomNodeLogger {
includeModuleName: boolean = false
) {
// lazy check db custom transport, needed beacause of dependency cycles
if (customDBTransport !== null && USE_DB_TRANSPORT() && !this.hasDBTransport()) {
const usingDBTransport = this.hasDBTransport()
if (customDBTransport !== null && USE_DB_TRANSPORT() && !usingDBTransport) {
this.addTransport(customDBTransport)
} else if (this.hasDBTransport() && !USE_DB_TRANSPORT()) {
this.logMessage('Removing DB transport from Logger: ' + this.getModuleName())
} else if (usingDBTransport && !USE_DB_TRANSPORT()) {
this.removeTransport(this.getDBTransport())
}

Expand Down

0 comments on commit 762df88

Please sign in to comment.