-
Notifications
You must be signed in to change notification settings - Fork 1
Description
The C library writes warnings and errors to stderr in some cases that are difficult to propagate out to the caller.
A facility in libmseed exists to accumulate errors avoid them going to the console via ms_loginit().
pymseed should accumulate the warnings and errors to avoid them going to the console.
API would then be needed to access the accumulated messages and return them if desired.
Likely starting direction is to add log accumulation setup in pymseed/__init__.py so it happens
at import time is (hopefully) global for all other calls.
The logging config is thread-local, so when threading is used in python each one will get the default
global logging (without accumulation). An option to handle this is to add a simple configure_thread_logging()
that can be called during thread initialization or in user-code at the start of a thread and have it use