From 6cde18d4433c4e0b38adb4ab0fa21017627d70cf Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Thu, 10 Jul 2025 15:57:04 +0200 Subject: [PATCH] Remove redundant TIFF warning handler setup (#4422) This became redundant after commit libvips/libvips@22994d9. --- src/sharp.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sharp.cc b/src/sharp.cc index f41ad14f..ed54c501 100644 --- a/src/sharp.cc +++ b/src/sharp.cc @@ -18,10 +18,8 @@ Napi::Object init(Napi::Env env, Napi::Object exports) { vips_init("sharp"); }); - for (auto domain : { "VIPS", "vips2tiff" }) { - g_log_set_handler(domain, static_cast(G_LOG_LEVEL_WARNING), - static_cast(sharp::VipsWarningCallback), nullptr); - } + g_log_set_handler("VIPS", static_cast(G_LOG_LEVEL_WARNING), + static_cast(sharp::VipsWarningCallback), nullptr); // Methods available to JavaScript exports.Set("metadata", Napi::Function::New(env, metadata));