Skip to content

Commit a23618c

Browse files
committed
add import
1 parent 7a63bd8 commit a23618c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

importer-db-api/src/utils/logger.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const LokiTransport = require('winston-loki')
12
const winston = require('winston')
23
const { IS_DEV } = require('../config')
34
const { combine, timestamp, printf, splat } = winston.format
@@ -39,11 +40,11 @@ if (!IS_DEV) {
3940
}
4041

4142
transports.push(
42-
new LokiTransport({
43-
host: 'http://loki-svc.toska-lokki.svc.cluster.local:3100',
44-
labels: { app: 'importer-db-api', environment: process.env.NODE_ENV || 'production' }
45-
})
46-
)
43+
new LokiTransport({
44+
host: 'http://loki-svc.toska-lokki.svc.cluster.local:3100',
45+
labels: { app: 'importer-db-api', environment: process.env.NODE_ENV || 'production' }
46+
})
47+
)
4748

4849
const logger = winston.createLogger({ transports })
4950

0 commit comments

Comments
 (0)