mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Moar technical fixes
This commit is contained in:
parent
33d3db62b2
commit
a792ed6e41
2 changed files with 2 additions and 8 deletions
|
@ -423,7 +423,7 @@ class Diagnoser:
|
||||||
not force
|
not force
|
||||||
and self.cached_time_ago() < self.cache_duration
|
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(
|
logger.info(
|
||||||
m18n.n("diagnosis_cache_still_valid", category=self.description)
|
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}
|
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)
|
self.write_cache(new_report)
|
||||||
Diagnoser.i18n(new_report)
|
Diagnoser.i18n(new_report)
|
||||||
add_ignore_flag_to_issues(new_report)
|
add_ignore_flag_to_issues(new_report)
|
||||||
|
|
|
@ -61,12 +61,6 @@ def new_translate(self, key, *args, **kwargs):
|
||||||
moulinette.core.Translator.translate = new_translate
|
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 #
|
# Init the moulinette to have the cli loggers stuff #
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue