summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-05-30 10:19:32 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-05-30 12:28:01 -0400
commit8e660d2aaf75d30a16ef3bf185e930c4b0895ce0 (patch)
treee9ffa136821fd64449e582d9c217f6ccbcfb1fdd
parentfix TypeORM logging to native console instead of NestJS logger (diff)
downloadsharkey-8e660d2aaf75d30a16ef3bf185e930c4b0895ce0.tar.gz
sharkey-8e660d2aaf75d30a16ef3bf185e930c4b0895ce0.tar.bz2
sharkey-8e660d2aaf75d30a16ef3bf185e930c4b0895ce0.zip
don't highlight queries in production
-rw-r--r--packages/backend/src/postgres.ts2
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