Skip to content

Cannot disable VIPS_INFO logs via bimg integration #1685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Qubitium opened this issue Jun 12, 2020 · 8 comments
Closed

Cannot disable VIPS_INFO logs via bimg integration #1685

Qubitium opened this issue Jun 12, 2020 · 8 comments
Labels

Comments

@Qubitium
Copy link

We are using bimg/golang library which is wrapper for libvips but we are getting tongs of VIPS-INFO: reduceh: 9 point mask VIPS-INFO: reducev: 9 point mask logs which we are unable to disable.

Is there a way to disable this info? Thanks.

We are on Centos and build everything from scratch with default ./configure options with no overrides. Not sure why it is prettying INFO which I consider debug level input.

@jcupitt
Copy link
Member

jcupitt commented Jun 12, 2020

Hello @diegomontoya,

The info output is disabled by default, I'm not sure why you're seeing it. Something must be enabling it.

It gets printed if you have an environment variable called VIPS_INFO, so you could search for that and see if it's being defined anywhere. It's also printed if you have VIPS in your G_MESSAGES_DEBUG environment variable.

You can also enable it using the glib logging framework, so I suppose that's possible too.

@Qubitium
Copy link
Author

Qubitium commented Jun 21, 2020

@jcupitt We can confirm there is no VIPS_INFO variable via declare and also no G_MESSAGES_DEBUG env was set. We even tested with env G_MESSAGES_DEBUG set to a non-existing program "none" and it still printed the VIPS INFO reduceh messages. We are going to manually comment out the reduceh info logs for now.

@libvips libvips deleted a comment from asicocuk12 Jun 21, 2020
@libvips libvips deleted a comment from asicocuk12 Jun 21, 2020
@jcupitt
Copy link
Member

jcupitt commented Jun 21, 2020

That's very odd. If you can make a dockerfile that shows the problem I could have a look in a debugger.

@jcupitt
Copy link
Member

jcupitt commented Jun 28, 2020

Oh, it could be an old glib. Apparently before 2.31 it could output debugging by default.

You could check your glib version number and perhaps update.

@kleisauke
Copy link
Member

Is this CentOS 6? If so, #1876 might be relevant here.

@Qubitium
Copy link
Author

@kleisauke Yes this is Centos6 and exact same bug as #1876.

I have since moved on to alpine linux with updated glib which does not have this issue.

@Qubitium
Copy link
Author

Duplicate of #1876.

@lovell
Copy link
Member

lovell commented Sep 29, 2023

@spolanyev This is probably a question for the https://github.com/davidbyttow/govips repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants