nthallen / monarch

Monarch Data Acquisition System
0 stars 1 forks source link

memo init failure issues #162

Open nthallen opened 2 years ago

nthallen commented 2 years ago

If connection to memo fails, the message generated during the failure (e.g. connect() failed) goes out via the default libnl version of msg, which does not add in the timestamp or the appID name, which is really useful information. It should be possible to redefine msg and msgv before the init and connect, but have the output go to stderr until the connect() succeeds. This will require some care to avoid breaking the current option handling.

There are also a number of error messages internal the msg.cc that write directly to stderr. These should also get wrapped in some way so they can go through msgv_func.