Skip to content

Commit cc6ac4f

Browse files
committed
be able to change LOG_LEVEL via env var
1 parent 22a93db commit cc6ac4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bufflog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import formats from "dd-trace/ext/formats";
33

44
export class BuffLog {
55
pinoLogger: any;
6-
defaultLevel = 'notice';
6+
defaultLevel = String.prototype.toLowerCase.apply(process.env.LOG_LEVEL) || "notice";;
77

88
constructor() {
99
this.pinoLogger = require('pino')({

0 commit comments

Comments
 (0)