mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 06:06:18 +01:00
Expose libvips warnings via NODE_DEBUG env var
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
NAN_MODULE_INIT(init) {
|
||||
vips_init("sharp");
|
||||
|
||||
g_log_set_handler("VIPS", static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
|
||||
static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);
|
||||
|
||||
// Methods available to JavaScript
|
||||
Nan::Set(target, Nan::New("metadata").ToLocalChecked(),
|
||||
Nan::GetFunction(Nan::New<v8::FunctionTemplate>(metadata)).ToLocalChecked());
|
||||
|
||||
Reference in New Issue
Block a user