diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-30 10:19:32 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-05-30 12:28:01 -0400 |
| commit | 8e660d2aaf75d30a16ef3bf185e930c4b0895ce0 (patch) | |
| tree | e9ffa136821fd64449e582d9c217f6ccbcfb1fdd /packages | |
| parent | fix TypeORM logging to native console instead of NestJS logger (diff) | |
| download | sharkey-8e660d2aaf75d30a16ef3bf185e930c4b0895ce0.tar.gz sharkey-8e660d2aaf75d30a16ef3bf185e930c4b0895ce0.tar.bz2 sharkey-8e660d2aaf75d30a16ef3bf185e930c4b0895ce0.zip | |
don't highlight queries in production
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/backend/src/postgres.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/postgres.ts b/packages/backend/src/postgres.ts index eef11d1ed8..6a3b60db95 100644 --- a/packages/backend/src/postgres.ts +++ b/packages/backend/src/postgres.ts @@ -137,7 +137,7 @@ class MyCustomLogger implements Logger { modded = truncateSql(modded); } - return highlightSql(modded); + return this.props.enableQueryLogging ? highlightSql(modded) : modded; } @bindThis |