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

« back to all changes in this revision

Viewing changes to softwarecenter/db/update.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:
412
412
                countrycode = region["countrycode"].lower()
413
413
                # blacklist
414
414
                if "%s%s" % (REGION_BLACKLIST_TAG, countrycode) in tags:
415
 
                    LOG.info("%r.make_doc: skipping region restricted app %r "
 
415
                    LOG.debug("%r.make_doc: skipping region restricted app %r "
416
416
                             "(blacklisted)", self.__class__.__name__, name)
417
417
                    return
418
418
                # whitelist
419
419
                for tag in tags:
420
420
                    if (tag.startswith(REGION_WHITELIST_TAG) and not
421
421
                        "%s%s" % (REGION_WHITELIST_TAG, countrycode) in tag):
422
 
                        LOG.info("%r.make_doc: skipping region restricted "
 
422
                        LOG.debug("%r.make_doc: skipping region restricted "
423
423
                                 "app %r (region not whitelisted)",
424
424
                                 self.__class__.__name__, name)
425
425
                        return