Skip to content

Commit

Permalink
[plugin cli] Remove settings argument from warnings log (#101824)
Browse files Browse the repository at this point in the history
The plugin CLI watches for warnings with a function taking the logger as
an argument.  There are two cases where we're passing a settings object
as the first argument, causing syntax errors instead of properly
logging.  This removes the extra argument.
  • Loading branch information
jbudz authored Jun 10, 2021
1 parent 00089bf commit 5ee5720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli_plugin/install/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function processCommand(command, options) {

const logger = new Logger(settings);

logWarnings(settings, logger);
logWarnings(logger);
install(settings, logger);
}

Expand Down
2 changes: 1 addition & 1 deletion src/cli_plugin/remove/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function processCommand(command, options) {

const logger = new Logger(settings);

logWarnings(settings, logger);
logWarnings(logger);
remove(settings, logger);
}

Expand Down

0 comments on commit 5ee5720

Please sign in to comment.