Zhichao commited on
Commit
0bb36de
1 Parent(s): 3c8b24f

use plain pino for eks (#87)

Browse files
Files changed (1) hide show
  1. lib/logger.ts +4 -4
lib/logger.ts CHANGED
@@ -13,7 +13,7 @@ class Logger {
13
  if (loggerInstance) {
14
  return loggerInstance;
15
  }
16
- this.lokiLogger = pino(
17
  { level: 'info' },
18
  pinoLoki({
19
  batching: false,
@@ -48,9 +48,9 @@ class Logger {
48
  context: {
49
  ...(request
50
  ? {
51
- method: request?.method,
52
- url: request.url,
53
- }
54
  : {}),
55
  sessionUserId: session?.user.id,
56
  sessionUserName: session?.user.name,
 
13
  if (loggerInstance) {
14
  return loggerInstance;
15
  }
16
+ this.lokiLogger = process.env.LND_TIER ? pino() : pino(
17
  { level: 'info' },
18
  pinoLoki({
19
  batching: false,
 
48
  context: {
49
  ...(request
50
  ? {
51
+ method: request?.method,
52
+ url: request.url,
53
+ }
54
  : {}),
55
  sessionUserId: session?.user.id,
56
  sessionUserName: session?.user.name,