Skip to content
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

Find out a way to filter out GDAL_ERROR and Loading native module from server logs #534

Open
1 task done
Raruto opened this issue Apr 21, 2023 · 1 comment
Open
1 task done
Assignees
Labels
ux Changes to a current behavior to improve user experience

Comments

@Raruto
Copy link
Contributor

Raruto commented Apr 21, 2023

Checklist

  • I've searched through the current issues to make sure this feature hasn't been requested already.

Motivation

Surely those messages are there for a useful reason, but we should try to find a decrease console clogs.

Sometimes things get hard to find within all this duplication..

2023-04-21 14:23:23 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:23 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:23 GDAL_ERROR 1: b'Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 GDAL_ERROR 1: b'Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:24 QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libdummy.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/liblandingpage.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwcs.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwfs.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwfs3.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwms.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwmts.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libdummy.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/liblandingpage.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwcs.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwfs.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwfs3.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwms.so"
2023-04-21 14:23:24 "Loading native module /usr/lib/qgis/server/libwmts.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libdummy.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/liblandingpage.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwcs.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwfs.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwfs3.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwms.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwmts.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libdummy.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/liblandingpage.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwcs.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwfs.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwfs3.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwms.so"
2023-04-21 14:23:25 "Loading native module /usr/lib/qgis/server/libwmts.so"
2023-04-21 14:23:26 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:26 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:26 GDAL_ERROR 1: b'Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:26 QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2023-04-21 14:23:26 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:26 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:26 GDAL_ERROR 1: b'Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:26 QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libdummy.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/liblandingpage.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwcs.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwfs.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwfs3.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwms.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwmts.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libdummy.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/liblandingpage.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwcs.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwfs.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwfs3.so"
2023-04-21 14:23:26 "Loading native module /usr/lib/qgis/server/libwms.so"
2023-04-21 14:23:27 "Loading native module /usr/lib/qgis/server/libwmts.so"
2023-04-21 14:23:28 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:28 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:28 GDAL_ERROR 1: b'Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:28 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:28 GDAL_ERROR 1: b'Unable to find driver ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:28 GDAL_ERROR 1: b'Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.'
2023-04-21 14:23:28 "Loading native module /usr/lib/qgis/server/libdummy.so"
2023-04-21 14:23:28 "Loading native module /usr/lib/qgis/server/liblandingpage.so"
2023-04-21 14:23:28 "Loading native module /usr/lib/qgis/server/libwcs.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwfs.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwfs3.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwms.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwmts.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libdummy.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/liblandingpage.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwcs.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwfs.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwfs3.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwms.so"
2023-04-21 14:23:29 "Loading native module /usr/lib/qgis/server/libwmts.so"

Suggested solution

  1. as per GDAL_ERROR I've found this topic: GDAL and Python - Don't print GDAL Error messages
  2. an alternative solution might be to print all those messages only once per server reboot (but really, I don't know how feasible it could be)

Alternatives considered

No response

@Raruto Raruto added the feature New feature or request label Apr 21, 2023
@Raruto Raruto added ux Changes to a current behavior to improve user experience and removed feature New feature or request labels Apr 21, 2023
@wlorenzetti
Copy link
Member

as per GDAL_ERROR I've found this topic: GDAL and Python - Don't print GDAL Error messages

I don't know if this solution can be applied to G3W-SUITE python code, because I'm pretty sure that this GDAL_ERROR come from c++ QGIS-server code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux Changes to a current behavior to improve user experience
Projects
None yet
Development

No branches or pull requests

2 participants