FairRootGroup / FairMQ

C++ Message Queuing Library and Framework
GNU Lesser General Public License v3.0
86 stars 34 forks source link

Decrease severity of channel config/initialize messages during startup #426

Closed ironMann closed 2 years ago

ironMann commented 2 years ago

Sometimes a fmq task is not meant to have any channels, or channels created and configured at startup. In such cases, FMQ library issues Warning messages as:

No channels created after finishing initialization
fair::mq::plugins::Config: no channels configuration provided via --mq-config or --channel-config

Describe the solution you'd like

Decrease severity of such messages, or allow for exceptions. Centralized logging gets polluted, and warning-level gives false indication of misconfiguration or problems with software bringup.

pippohub commented 2 years ago

Dear all, what is the status of this topic? Indeed when we start a run there are plenty of these messages

W |  | 15:06:38.954 | alio2-cr1-flp178 | FLP | datadist/stfbuilder | TOF |  |  | [FMQ] fair::mq::plugins::Config: no channels configuration provided via --mq-config or --channel-config|
|W |  | 15:06:38.983 | alio2-cr1-flp050 | FLP | datadist/stfbuilder | TPC | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:39.032 | alio2-cr1-flp145 | FLP | datadist/stfbuilder | TPC | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:39.040 | alio2-cr1-flp070 | FLP | datadist/stfbuilder | TPC | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:39.034 | alio2-cr1-flp154 | FLP | datadist/stfbuilder | MCH | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:39.041 | alio2-cr1-flp096 | FLP | datadist/stfbuilder | TPC | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:39.028 | alio2-cr1-flp034 | FLP | datadist/stfbuilder | TPC | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:38.954 | alio2-cr1-flp189 | FLP | datadist/stfbuilder | ITS | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:38.960 | alio2-cr1-flp190 | FLP | datadist/stfsender | ITS |  |  | [FMQ] fair::mq::plugins::Config: no channels configuration provided via --mq-config or --channel-config|
|W |  | 15:06:38.955 | alio2-cr1-flp195 | FLP | datadist/stfbuilder | ITS | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:38.965 | alio2-cr1-flp182 | FLP | datadist/stfbuilder | MFT | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:38.963 | alio2-cr1-flp160 | FLP | datadist/stfbuilder | HMP |  |  | [FMQ] fair::mq::plugins::Config: no channels configuration provided via --mq-config or --channel-config|
|W |  | 15:06:38.962 | alio2-cr1-flp190 | FLP | datadist/stfbuilder | ITS | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:38.967 | alio2-cr1-flp183 | FLP | datadist/stfbuilder | MFT | 2ZFbAHkwW2u |  | [FMQ] Config has no key: discovery-id. Returning default constructed object.|
|W |  | 15:06:38.975 | alio2-cr1-flp191 | FLP | datadist/stfbuilder | ITS |  |  | [FMQ] fair::mq::plugins::Config: no channels configuration provided via --mq-config or --channel-config|
|W |  | 15:06:38.973 | alio2-cr1-flp196 | FLP | datadist/stfsender | ITS |  |  | [FMQ] fair::mq::plugins::Config: no channels configuration provided via --mq-config or --channel-config|
|W |  | 15:06:39.005 | alio2-cr1-flp194 | FLP | datadist/stfsender | ITS |  |  | [FMQ] fair::mq::plugins::Config: no channels configuration provided via --mq-config or --channel-config|
|W |  | 15:06:38.950 | alio2-cr1-flp200 | FLP | datadist/stfbuilder | FT0 | 2ZFbAHkwW2u |  | [FMQ] fair::mq::plugins::Config: no channels configuration provided via --mq-config or --channel-
rbx commented 2 years ago

The severity of these messages has been reduced to info. The change is already in the dev branch. You shall see the effect with the next release.