From 99d6daf3abe758e2aa3fef6a1c764233a47b4f1c Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Fri, 12 Jul 2019 14:17:35 +0200 Subject: [PATCH] [fix] Path not displayed in log_corrupted_md_file --- src/yunohost/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yunohost/log.py b/src/yunohost/log.py index 8f8c92010..62775d619 100644 --- a/src/yunohost/log.py +++ b/src/yunohost/log.py @@ -106,7 +106,7 @@ def log_list(category=[], limit=None, with_details=False): try: metadata = yaml.safe_load(md_file) except yaml.YAMLError: - logger.warning(m18n.n('log_corrupted_md_file', file=md_path)) + logger.warning(m18n.n('log_corrupted_md_file', md_file=md_path)) entry["success"] = metadata.get("success", "?") if metadata else "?" @@ -192,7 +192,7 @@ def log_display(path, number=50, share=False): if 'log_path' in metadata: log_path = metadata['log_path'] except yaml.YAMLError: - error = m18n.n('log_corrupted_md_file', file=md_path) + error = m18n.n('log_corrupted_md_file', md_file=md_path) if os.path.exists(log_path): logger.warning(error) else: