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

question about logging #172

Open
tlambert03 opened this issue Mar 5, 2024 · 0 comments
Open

question about logging #172

tlambert03 opened this issue Mar 5, 2024 · 0 comments

Comments

@tlambert03
Copy link
Contributor

When I instantiate an acquire.Runtime I get a bunch of logging.ERROR level logs for drivers that I'm unlikely to ever use (since I don't have all those cameras).

Log: warn enabled
Log: error enabled
/Users/runner/work/acquire-python/acquire-python/acquire-common/acquire-core-libs/src/acquire-device-hal/device/hal/loader.c:125 - driver_load(): Failed to initialize driver at "acquire-driver-hdcam"
/Users/runner/work/acquire-python/acquire-python/acquire-common/acquire-core-libs/src/acquire-device-hal/device/hal/loader.c:125 - driver_load(): Failed to initialize driver at "acquire-driver-egrabber"
/Users/runner/work/acquire-python/acquire-python/acquire-common/acquire-core-libs/src/acquire-device-hal/device/hal/loader.c:125 - driver_load(): Failed to initialize driver at "acquire-driver-spinnaker"
/Users/runner/work/acquire-python/acquire-python/acquire-common/acquire-core-libs/src/acquire-device-hal/device/hal/loader.c:125 - driver_load(): Failed to initialize driver at "acquire-driver-pvcam"

I can silence these of course with getLogger("acquire").setLevel("CRITICAL") ... but that seems somewhat drastic. Are these just for the time being, intended for eventual removal? Or is there a better way to silence errors on unused drivers?

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

No branches or pull requests

1 participant