Skip to content

Commit

Permalink
deps(lighthouse-logger): add LH: prefix to scope
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Jul 20, 2021
1 parent 579e3cb commit 84405ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lighthouse-logger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Log {
}

static loggerfn(title) {
title = `LH:${title}`;
let log = loggersByTitle[title];
if (!log) {
log = debug(title);
Expand All @@ -82,16 +83,16 @@ class Log {
level_ = level;
switch (level) {
case 'silent':
debug.enable('-*');
debug.enable('-LH:*');
break;
case 'verbose':
debug.enable('*');
debug.enable('LH:*');
break;
case 'error':
debug.enable('-*, *:error');
debug.enable('-LH:*, LH:*:error');
break;
default:
debug.enable('*, -*:verbose');
debug.enable('LH:*, -LH:*:verbose');
}
}

Expand Down
2 changes: 1 addition & 1 deletion lighthouse-logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lighthouse-logger",
"version": "1.2.0",
"version": "1.3.0",
"license": "Apache-2.0",
"dependencies": {
"debug": "^2.6.9",
Expand Down

0 comments on commit 84405ed

Please sign in to comment.