@@ -50,21 +50,19 @@ export async function main(
50
50
51
51
let builtinGlobalOptions ;
52
52
53
- log ( "Hardhat CLI started with arguments:" , cliArguments ) ;
53
+ log ( "Hardhat CLI started" ) ;
54
54
55
55
try {
56
56
const usedCliArguments : boolean [ ] = new Array ( cliArguments . length ) . fill (
57
57
false ,
58
58
) ;
59
59
60
- log ( "Parsing builtin global options" ) ;
61
-
62
60
builtinGlobalOptions = await parseBuiltinGlobalOptions (
63
61
cliArguments ,
64
62
usedCliArguments ,
65
63
) ;
66
64
67
- log ( "Parsed builtin global options:" , builtinGlobalOptions ) ;
65
+ log ( "Parsed builtin global options" ) ;
68
66
69
67
if ( builtinGlobalOptions . version ) {
70
68
return await printVersionMessage ( print ) ;
@@ -74,26 +72,20 @@ export async function main(
74
72
return await initHardhat ( ) ;
75
73
}
76
74
77
- log ( "Checking telemetry consent" ) ;
78
-
79
75
// TODO: the consent will be enabled in the other PRs related to telemetry
80
76
const _telemetryConsent = await getTelemetryConsent ( ) ;
81
77
82
- log ( "Telemetry consent:" , _telemetryConsent ) ;
78
+ log ( "Retrieved telemetry consent" ) ;
83
79
84
80
if ( builtinGlobalOptions . configPath === undefined ) {
85
- log ( "Config path not provided, attempting to resolve it" ) ;
86
-
87
81
builtinGlobalOptions . configPath = await resolveHardhatConfigPath ( ) ;
88
82
89
- log ( "Resolved config path:" , builtinGlobalOptions . configPath ) ;
83
+ log ( "Resolved config path" ) ;
90
84
}
91
85
92
- log ( "Importing user config" ) ;
93
-
94
86
const userConfig = await importUserConfig ( builtinGlobalOptions . configPath ) ;
95
87
96
- log ( "User config imported:" , userConfig ) ;
88
+ log ( "User config imported" ) ;
97
89
98
90
const configPlugins = Array . isArray ( userConfig . plugins )
99
91
? userConfig . plugins
@@ -104,7 +96,7 @@ export async function main(
104
96
builtinGlobalOptions . configPath ,
105
97
) ;
106
98
107
- log ( "Resolved plugins:" , resolvedPlugins ) ;
99
+ log ( "Resolved plugins" ) ;
108
100
109
101
const pluginGlobalOptionDefinitions =
110
102
buildGlobalOptionDefinitions ( resolvedPlugins ) ;
@@ -118,8 +110,6 @@ export async function main(
118
110
usedCliArguments ,
119
111
) ;
120
112
121
- log ( "User provided global options:" , userProvidedGlobalOptions ) ;
122
-
123
113
log ( "Creating Hardhat Runtime Environment" ) ;
124
114
125
115
const hre = await createHardhatRuntimeEnvironment (
@@ -133,8 +123,6 @@ export async function main(
133
123
134
124
const taskOrId = parseTask ( cliArguments , usedCliArguments , hre ) ;
135
125
136
- log ( "Parsed task:" , taskOrId ) ;
137
-
138
126
if ( Array . isArray ( taskOrId ) ) {
139
127
if ( taskOrId . length === 0 ) {
140
128
const globalHelp = await getGlobalHelpString (
@@ -167,7 +155,7 @@ export async function main(
167
155
task ,
168
156
) ;
169
157
170
- log ( `Running task "${ task . id . join ( " " ) } " with arguments:` , taskArguments ) ;
158
+ log ( `Running task "${ task . id . join ( " " ) } "` ) ;
171
159
172
160
await task . run ( taskArguments ) ;
173
161
} catch ( error ) {
0 commit comments