Skip to content

Commit 6cde18d

Browse files
authored
Remove redundant TIFF warning handler setup (#4422)
This became redundant after commit libvips/libvips@22994d9.
1 parent 276ac2d commit 6cde18d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sharp.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ Napi::Object init(Napi::Env env, Napi::Object exports) {
1818
vips_init("sharp");
1919
});
2020

21-
for (auto domain : { "VIPS", "vips2tiff" }) {
22-
g_log_set_handler(domain, static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
23-
static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);
24-
}
21+
g_log_set_handler("VIPS", static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
22+
static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);
2523

2624
// Methods available to JavaScript
2725
exports.Set("metadata", Napi::Function::New(env, metadata));

0 commit comments

Comments
 (0)