fedora-infra / fedmsg

Federated Messaging with ZeroMQ
https://fedmsg.readthedocs.io/
GNU Lesser General Public License v2.1
171 stars 93 forks source link

Warning that probably should be info #521

Open yaneti opened 6 years ago

yaneti commented 6 years ago

https://github.com/fedora-infra/fedmsg/blob/c21d6b3ce023fc3c0e881c704f5b55fb6e6392d7/fedmsg/crypto/utils.py#L97

I am using the simplest form of tail message with the default fedmsg config

config = fedmsg.config.load_config()
for name, endpoint, topic, msg in fedmsg.tail_messages(topic='org.fedoraproject.prod.buildsys.build.state.change', mute=True, **config):

and my log is filled with: No routing policy defined for "org.fedoraproject.prod.buildsys.build.state.change" but routing_nitpicky is False so the message is being treated as authorized. on each koji message

which is quite useless imho. The default config is not to be nitpicky..

TomasTomecek commented 5 years ago

Yes, this is really annoying.

sidpremkumar commented 5 years ago

Does anyone know how to disable this WARNING?

vojtechsokol commented 4 years ago

@sidpremkumar I was able to disable this by editing the default config /etc/fedmsg.d/ssl.py and setting the value of validate_signatures to False. And to disable the warning from code that calls tail_messages you have to slightly abuse fedmsg:

import fedmsg

fedmsg.destroy()                                                                                           
fedmsg.init(validate_signatures=False)