Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 15, 2024
1 parent c7f6011 commit 406cf32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ export class Database {
// once we create a DB instance, the logger will be using this transport as well
// we cannot have this the other way around because of the dependencies cycle
if (USE_DB_TRANSPORT) {
console.log('DB USE_DB_TRANSPORT ', USE_DB_TRANSPORT)
configureCustomDBTransport(this, DATABASE_LOGGER)
} else {
DATABASE_LOGGER.warn(
Expand Down
1 change: 1 addition & 0 deletions src/test/integration/logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('LogDatabase CRUD', () => {
'meta'
)
logId = result?.id // Save the auto-generated id for further operations
console.log('log id: ' + logId)
})

it('retrieve log', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/logging/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export class CustomNodeLogger {
// lazy check db custom transport, needed beacause of dependency cycles
if (
customDBTransport !== null && // if null then what?
!isDevelopmentEnvironment() &&
USE_DB_TRANSPORT &&
!this.hasDBTransport()
) {
this.addTransport(customDBTransport)
Expand Down

0 comments on commit 406cf32

Please sign in to comment.