~mvo/software-center/minor-logging-fixes

« back to all changes in this revision

Viewing changes to softwarecenter/db/database.py

  • Committer: Michael Vogt
  • Date: 2012-12-04 12:49:14 UTC
  • Revision ID: michael.vogt@ubuntu.com-20121204124914-x061thtcv8p3krq7
hide some unneeded LOG output unless the user goes into debug mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
 
224
224
    def open(self, pathname=None, use_axi=True, use_agent=True):
225
225
        """ open the database """
226
 
        LOG.info("open() database: path=%s use_axi=%s "
 
226
        LOG.debug("open() database: path=%s use_axi=%s "
227
227
                          "use_agent=%s" % (pathname, use_axi, use_agent))
228
228
        if pathname:
229
229
            self._db_pathname = pathname
265
265
        # we only care about the utime() update from update-a-x-i
266
266
        if not event == Gio.FileMonitorEvent.ATTRIBUTE_CHANGED:
267
267
            return
268
 
        LOG.info("afile '%s' changed" % afile)
 
268
        LOG.debug("afile '%s' changed" % afile)
269
269
        if self._timeout_id:
270
270
            GObject.source_remove(self._timeout_id)
271
271
            self._timeout_id = None
290
290
 
291
291
    def reopen(self):
292
292
        """ reopen the database """
293
 
        LOG.info("reopen() database")
 
293
        LOG.debug("reopen() database")
294
294
        self.open(use_axi=self._use_axi, use_agent=self._use_agent)
295
295
        self.emit("reopen")
296
296