Michal Skrivanek has posted comments on this change.
Change subject: api: use recommended logging ......................................................................
Patch Set 1:
(1 comment)
https://gerrit.ovirt.org/#/c/38422/1/vdsm/API.py File vdsm/API.py:
Line 1368: level: requested logging level. `logging.DEBUG` `logging.ERROR` Line 1369: Line 1370: Doesn't survive a restart Line 1371: """ Line 1372: logging.info('Setting loglevel to %s', level) this should imho be higher prio as you want to see the change when setting WARN and CRIT Line 1373: handlers = logging.getLogger().handlers Line 1374: [fileHandler] = [h for h in handlers if Line 1375: isinstance(h, logging.FileHandler)] Line 1376: fileHandler.setLevel(int(level))