Change in vdsm[master]: AdvancedStatsThread: Rotate duplicated stats log

zhshzhou at linux.vnet.ibm.com zhshzhou at linux.vnet.ibm.com
Fri Jan 11 08:41:24 UTC 2013


Zhou Zheng Sheng has posted comments on this change.

Change subject: AdvancedStatsThread: Rotate duplicated stats log
......................................................................


Patch Set 3: (2 inline comments)

Thanks Dan and Yaniv!

....................................................
File vdsm/logger.conf.in
Line 66: args: []
Line 67: formatter: none
Line 68: 
Line 69: [handler_statslog]
Line 70: class=logging.handlers.RotatingFileHandler
Done
Line 71: args=('@VDSMLOGDIR@/stats.log', 'a', 104857600, 3)
Line 72: filters=logUtils.TracebackRepeatFilter
Line 73: level=DEBUG
Line 74: formatter=long


....................................................
File vdsm/vm.py
Line 363:                          CONTROLLER_DEVICES: [], GENERAL_DEVICES: [],
Line 364:                          BALLOON_DEVICES: [], REDIR_DEVICES: []}
Line 365: 
Line 366:     def wrapLogger(self, log):
Line 367:         return SimpleLogAdapter(log, {"vmId": self.conf['vmId']})
Done
Line 368: 
Line 369:     def _get_lastStatus(self):
Line 370:         PAUSED_STATES = ('Powering down', 'RebootInProgress', 'Up')
Line 371:         if not self._guestCpuRunning and self._lastStatus in PAUSED_STATES:


--
To view, visit http://gerrit.ovirt.org/8884
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I2ee04d8d82e2a14b0a003627981c28e5e64a46ab
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Gal Hammer <ghammer at redhat.com>
Gerrit-Reviewer: Mark Wu <wudxw at linux.vnet.ibm.com>
Gerrit-Reviewer: Peter V. Saveliev <peet at redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server


More information about the vdsm-patches mailing list