mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-12 01:24:59 +08:00
Log tidying.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
[DEFAULT]
|
||||
system = koji
|
||||
messaging = fedmsg
|
||||
koji_config = /etc/rida/koji.conf
|
||||
koji_config = ~/.koji/config
|
||||
# See https://fedoraproject.org/wiki/Koji/WritingKojiCode#Profiles
|
||||
koji_profile = koji
|
||||
koji_profile = staging
|
||||
koji_arches = ["x86_64"]
|
||||
db = sqlite:///rida.db
|
||||
pdc_url = http://modularity.fedorainfracloud.org:8080/rest_api/v1/
|
||||
|
||||
@@ -291,7 +291,7 @@ chmod 644 %buildroot/%_rpmconfigdir/macro.modules
|
||||
koji_config.krbservice = krbservice
|
||||
|
||||
address = koji_config.server
|
||||
log.info("Connecting to koji %r, %r" % (address, koji_config))
|
||||
log.info("Connecting to koji %r" % address)
|
||||
koji_session = koji.ClientSession(address, opts=vars(koji_config))
|
||||
|
||||
authtype = koji_config.authtype
|
||||
|
||||
@@ -175,9 +175,10 @@ class MessageWorker(threading.Thread):
|
||||
|
||||
# Execute our chosen handler
|
||||
with rida.database.Database(config) as session:
|
||||
log.info(" %r: %s, %s" % (handler, msg['topic'], msg['msg_id']))
|
||||
log.info(" %s: %s, %s" % (handler.__name__, msg['topic'], msg['msg_id']))
|
||||
handler(config, session, msg)
|
||||
|
||||
|
||||
class Poller(threading.Thread):
|
||||
def __init__(self, outgoing_work_queue, *args, **kwargs):
|
||||
self.outgoing_work_queue = outgoing_work_queue
|
||||
|
||||
Reference in New Issue
Block a user