diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-12-05 14:25:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-05 14:25:25 +0100 |
commit | 918518b50643d510b26b50a9dd792d731e5479ac (patch) | |
tree | 676125468454d310a525eb424e6cbbc85f321980 /cli | |
parent | 83b6085604c28124597f6e668ca4a93941999d6a (diff) |
napi: respect --quiet flag in unimplemented warnings (#16935)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/napi/env.rs | 4 | ||||
-rw-r--r-- | cli/napi/js_native_api.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/napi/env.rs b/cli/napi/env.rs index df9af522f..0adb0481e 100644 --- a/cli/napi/env.rs +++ b/cli/napi/env.rs @@ -59,7 +59,7 @@ fn napi_add_env_cleanup_hook( _hook: extern "C" fn(*const c_void), _data: *const c_void, ) -> Result { - eprintln!("napi_add_env_cleanup_hook is currently not supported"); + log::info!("napi_add_env_cleanup_hook is currently not supported"); Ok(()) } @@ -69,7 +69,7 @@ fn napi_remove_env_cleanup_hook( _hook: extern "C" fn(*const c_void), _data: *const c_void, ) -> Result { - eprintln!("napi_remove_env_cleanup_hook is currently not supported"); + log::info!("napi_remove_env_cleanup_hook is currently not supported"); Ok(()) } diff --git a/cli/napi/js_native_api.rs b/cli/napi/js_native_api.rs index a4726fd39..1c3b02fa9 100644 --- a/cli/napi/js_native_api.rs +++ b/cli/napi/js_native_api.rs @@ -737,7 +737,7 @@ fn napi_make_callback( } if !async_context.is_null() { - eprintln!("napi_make_callback: async_context is not supported"); + log::info!("napi_make_callback: async_context is not supported"); } let recv = transmute::<napi_value, v8::Local<v8::Value>>(recv); @@ -1006,7 +1006,7 @@ fn napi_add_finalizer( _finalize_hint: *const c_void, _result: *mut napi_ref, ) -> Result { - eprintln!("napi_add_finalizer is not yet supported."); + log::info!("napi_add_finalizer is not yet supported."); Ok(()) } |