Skip to content

Commit 2348d8b

Browse files
committed
fix: change debug log method (#21)
Change console method for debug from`log` to `debug` in order for the log to be labeled `DEBUG` within Cloudwatch Logs.
1 parent 6e34b2c commit 2348d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/LambdaLog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class LambdaLog extends EventEmitter {
7373
warn: 'warn',
7474
error: 'error',
7575
debug: function() {
76-
if(this.options.debug) return 'log';
76+
if(this.options.debug) return 'debug';
7777
return false;
7878
}
7979
}, levels || {});

0 commit comments

Comments
 (0)