Skip to content

Commit 5616fa2

Browse files
committed
feat: fix logging conditional
1 parent a1b61ee commit 5616fa2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PORT=8080
2-
LOG_LEVEL="debug"
2+
LOG_LEVEL="info"
33
CORS_ORIGIN="*"
44

55
PG_CONN="postgres://postgres:password@localhost:5432/archive"

src/server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function initJaegerProvider() {
3030
}
3131

3232
// Check if Jaeger endpoint is available.
33+
// eslint-disable-next-line prefer-const
3334
let [hostname, port] = process.env.JAEGER_ENDPOINT.replace(
3435
'http://',
3536
''
@@ -56,8 +57,7 @@ function buildPlugins() {
5657
const plugins = [];
5758

5859
plugins.push(useGraphQlJit());
59-
60-
if (process.env.ENABLE_LOGGING === 'true') {
60+
if (process.env.ENABLE_LOGGING) {
6161
const provider = initJaegerProvider();
6262
plugins.push(
6363
useOpenTelemetry(

0 commit comments

Comments
 (0)