|
|
@ -261,10 +261,10 @@ void InitLogConstants(Local<Object> exports) { |
|
|
|
Nan::HandleScope scope; |
|
|
|
Nan::HandleScope scope; |
|
|
|
Local<Object> log_verbosity = Nan::New<Object>(); |
|
|
|
Local<Object> log_verbosity = Nan::New<Object>(); |
|
|
|
Nan::Set(exports, Nan::New("logVerbosity").ToLocalChecked(), log_verbosity); |
|
|
|
Nan::Set(exports, Nan::New("logVerbosity").ToLocalChecked(), log_verbosity); |
|
|
|
Local<Value> DEBUG(Nan::New<Uint32, uint32_t>(GPR_LOG_SEVERITY_DEBUG)); |
|
|
|
Local<Value> LOG_DEBUG(Nan::New<Uint32, uint32_t>(GPR_LOG_SEVERITY_DEBUG)); |
|
|
|
Nan::Set(log_verbosity, Nan::New("DEBUG").ToLocalChecked(), DEBUG); |
|
|
|
Nan::Set(log_verbosity, Nan::New("DEBUG").ToLocalChecked(), LOG_DEBUG); |
|
|
|
Local<Value> INFO(Nan::New<Uint32, uint32_t>(GPR_LOG_SEVERITY_INFO)); |
|
|
|
Local<Value> LOG_INFO(Nan::New<Uint32, uint32_t>(GPR_LOG_SEVERITY_INFO)); |
|
|
|
Nan::Set(log_verbosity, Nan::New("INFO").ToLocalChecked(), INFO); |
|
|
|
Nan::Set(log_verbosity, Nan::New("INFO").ToLocalChecked(), LOG_INFO); |
|
|
|
Local<Value> LOG_ERROR(Nan::New<Uint32, uint32_t>(GPR_LOG_SEVERITY_ERROR)); |
|
|
|
Local<Value> LOG_ERROR(Nan::New<Uint32, uint32_t>(GPR_LOG_SEVERITY_ERROR)); |
|
|
|
Nan::Set(log_verbosity, Nan::New("ERROR").ToLocalChecked(), LOG_ERROR); |
|
|
|
Nan::Set(log_verbosity, Nan::New("ERROR").ToLocalChecked(), LOG_ERROR); |
|
|
|
} |
|
|
|
} |
|
|
|