File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ export default async function shadowBin(
28
28
) . filter ( a => ! isProgressFlag ( a ) )
29
29
const otherArgs = terminatorPos === - 1 ? [ ] : args . slice ( terminatorPos )
30
30
const isSilent = ! useDebug && ! binArgs . some ( isLoglevelFlag )
31
- const logLevelArgs = isSilent ? [ '--loglevel' , 'silent' ] : [ ]
31
+ // The default value of loglevel is "notice". We default to "error" which is
32
+ // two levels quieter.
33
+ const logLevelArgs = isSilent ? [ '--loglevel' , 'error' ] : [ ]
32
34
const spawnPromise = spawn (
33
35
// Lazily access constants.execPath.
34
36
constants . execPath ,
@@ -50,9 +52,9 @@ export default async function shadowBin(
50
52
constants . distShadowNpmInjectPath ,
51
53
// Lazily access constants.shadowBinPath.
52
54
await installLinks ( constants . shadowBinPath , binName ) ,
53
- // Add ` --no-progress` to fix input being swallowed by the npm spinner.
55
+ // Add ' --no-progress' to fix input being swallowed by the npm spinner.
54
56
'--no-progress' ,
55
- // Add '--loglevel=silent ' if a loglevel flag is not provided and the
57
+ // Add '--loglevel=error ' if a loglevel flag is not provided and the
56
58
// SOCKET_CLI_DEBUG environment variable is not truthy.
57
59
...logLevelArgs ,
58
60
...binArgs ,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export function safeNpmInstall(options?: SafeNpmInstallOptions) {
67
67
// Avoid code paths for 'audit' and 'fund'.
68
68
'--no-audit' ,
69
69
'--no-fund' ,
70
- // Add ` --no-progress` to fix input being swallowed by the npm spinner.
70
+ // Add ' --no-progress' to fix input being swallowed by the npm spinner.
71
71
'--no-progress' ,
72
72
// Add '--loglevel=silent' if a loglevel flag is not provided and the
73
73
// SOCKET_CLI_DEBUG environment variable is not truthy.
You can’t perform that action at this time.
0 commit comments