@@ -167,17 +167,6 @@ void SyncConfig(const FunctionCallbackInfo<Value>& info) {
167
167
168
168
Utf8Value pathstr (env->isolate (), path);
169
169
170
- // Report verbosity
171
- Local<String> verbosekey = FIXED_ONE_BYTE_STRING (env->isolate (), " verbose" );
172
- Local<Value> verbose_unchecked;
173
- if (!obj->Get (context, verbosekey).ToLocal (&verbose_unchecked)) return ;
174
- Local<Boolean > verbose;
175
- if (verbose_unchecked->IsUndefined () || verbose_unchecked->IsNull ())
176
- verbose_unchecked = Boolean::New (env->isolate (), " verbose" );
177
- verbose = verbose_unchecked.As <Boolean >();
178
-
179
- bool verb = verbose->BooleanValue (context).FromJust ();
180
-
181
170
if (sync ) {
182
171
static const std::string e = " exception" ;
183
172
static const std::string s = " signal" ;
@@ -202,7 +191,6 @@ void SyncConfig(const FunctionCallbackInfo<Value>& info) {
202
191
options->report_filename = *filestr;
203
192
CHECK_NOT_NULL (*pathstr);
204
193
options->report_directory = *pathstr;
205
- options->report_verbose = verb;
206
194
} else {
207
195
int i = 0 ;
208
196
if (options->report_uncaught_exception &&
@@ -242,12 +230,6 @@ void SyncConfig(const FunctionCallbackInfo<Value>& info) {
242
230
.ToLocal (&path_value))
243
231
return ;
244
232
if (!obj->Set (context, pathkey, path_value).FromJust ()) return ;
245
-
246
- if (!obj->Set (context,
247
- verbosekey,
248
- Boolean::New (env->isolate (), options->report_verbose ))
249
- .FromJust ())
250
- return ;
251
233
}
252
234
}
253
235
@@ -261,22 +243,6 @@ static void Initialize(Local<Object> exports,
261
243
env->SetMethod (exports, " onUnCaughtException" , OnUncaughtException);
262
244
env->SetMethod (exports, " onUserSignal" , OnUserSignal);
263
245
env->SetMethod (exports, " syncConfig" , SyncConfig);
264
-
265
- // TODO(gireeshpunathil) if we are retaining this flag,
266
- // insert more verbose information at vital control flow
267
- // points. Right now, it is only this one.
268
- if (options->report_verbose ) {
269
- std::cerr << " report: initialization complete, event flags:" << std::endl;
270
- std::cerr << " report_uncaught_exception: "
271
- << options->report_uncaught_exception << std::endl;
272
- std::cerr << " report_on_signal: " << options->report_on_signal << std::endl;
273
- std::cerr << " report_on_fatalerror: " << options->report_on_fatalerror
274
- << std::endl;
275
- std::cerr << " report_signal: " << options->report_signal << std::endl;
276
- std::cerr << " report_filename: " << options->report_filename << std::endl;
277
- std::cerr << " report_directory: " << options->report_directory << std::endl;
278
- std::cerr << " report_verbose: " << options->report_verbose << std::endl;
279
- }
280
246
}
281
247
282
248
} // namespace report
0 commit comments