Moar technical fixes

This commit is contained in:
Alexandre Aubin 2021-11-18 03:54:25 +01:00
parent 33d3db62b2
commit a792ed6e41
2 changed files with 2 additions and 8 deletions

View file

@ -423,7 +423,7 @@ class Diagnoser:
not force
and self.cached_time_ago() < self.cache_duration
):
self.logger_debug("Cache still valid : %s" % self.cache_file)
logger.debug("Cache still valid : %s" % self.cache_file)
logger.info(
m18n.n("diagnosis_cache_still_valid", category=self.description)
)
@ -457,7 +457,7 @@ class Diagnoser:
new_report = {"id": self.id_, "cached_for": self.cache_duration, "items": items}
self.logger_debug("Updating cache %s" % self.cache_file)
logger.debug("Updating cache %s" % self.cache_file)
self.write_cache(new_report)
Diagnoser.i18n(new_report)
add_ignore_flag_to_issues(new_report)

View file

@ -61,12 +61,6 @@ def new_translate(self, key, *args, **kwargs):
moulinette.core.Translator.translate = new_translate
def new_m18nn(self, key, *args, **kwargs):
return self._namespaces[self._current_namespace].translate(key, *args, **kwargs)
moulinette.core.Moulinette18n.n = new_m18nn
#
# Init the moulinette to have the cli loggers stuff #
#