1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

napi: respect --quiet flag in unimplemented warnings (#16935)

This commit is contained in:
Bartek Iwańczuk 2022-12-05 14:25:25 +01:00 committed by GitHub
parent 83b6085604
commit 918518b506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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(())
}

View file

@ -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(())
}