We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 276ac2d commit 6cde18dCopy full SHA for 6cde18d
src/sharp.cc
@@ -18,10 +18,8 @@ Napi::Object init(Napi::Env env, Napi::Object exports) {
18
vips_init("sharp");
19
});
20
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
- }
+ g_log_set_handler("VIPS", static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
+ static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);
25
26
// Methods available to JavaScript
27
exports.Set("metadata", Napi::Function::New(env, metadata));
0 commit comments