Dne 11.9.2017 v 16:13 Vit Ry napsal(a): > Hi all! > > What is the easiest way to log some data from my mock.cfg / site-defaults.cfg > ? > I dynamically load repo-priority file and generates repos-data. So I want to > print some > debug as INFO message. How can I connect to mock's logger, so I wouldn't see > my debug with > mock -q -r ... > and would see it otherwise (without -q) ? > > I take a look into sources and find there is logging.warning level before > reading config files..=\ > Any ideas?
There is in site-defaults.cfg: # You can configure log format to pull from logging.ini formats of these names: # config_opts['build_log_fmt_name'] = "unadorned" # config_opts['root_log_fmt_name'] = "detailed" # config_opts['state_log_fmt_name'] = "state" and there is /etc/mock/logging.ini So it should work somehow, but I never done it. The other option can be: https://github.com/rpm-software-management/mock/issues/105 I have one highschool intern who is working on that. Despite the fact that is quite slow, it should be done this week. Mirek _______________________________________________ buildsys mailing list -- buildsys@lists.fedoraproject.org To unsubscribe send an email to buildsys-le...@lists.fedoraproject.org