Remove redundant TIFF warning handler setup (#4422)

This became redundant after commit libvips/libvips@22994d9.
This commit is contained in:
Kleis Auke Wolthuizen 2025-07-10 15:57:04 +02:00 committed by GitHub
parent 276ac2df8d
commit 6cde18d443
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,10 +18,8 @@ Napi::Object init(Napi::Env env, Napi::Object exports) {
vips_init("sharp"); vips_init("sharp");
}); });
for (auto domain : { "VIPS", "vips2tiff" }) { g_log_set_handler("VIPS", static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
g_log_set_handler(domain, static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr); static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);
}
// Methods available to JavaScript // Methods available to JavaScript
exports.Set("metadata", Napi::Function::New(env, metadata)); exports.Set("metadata", Napi::Function::New(env, metadata));