From 1c1f781be421bfdab29ee942b6ab1892dd948186 Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 24 May 2021 13:17:28 +0200 Subject: [PATCH] Reword some log messages --- PFERD/config.py | 2 +- PFERD/pferd.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/PFERD/config.py b/PFERD/config.py index abd6e9e..8293331 100644 --- a/PFERD/config.py +++ b/PFERD/config.py @@ -110,7 +110,7 @@ class Config: """ if path: - log.explain("Using custom path") + log.explain("Path specified on CLI") else: log.explain("Using default path") path = Config._default_path() diff --git a/PFERD/pferd.py b/PFERD/pferd.py index 35f5194..bed7c66 100644 --- a/PFERD/pferd.py +++ b/PFERD/pferd.py @@ -80,7 +80,7 @@ class Pferd: for name in self._crawlers_to_run: section_name = f"crawl:{name}" if section_name in self._crawlers: - log.explain(f"Found crawler section named {section_name!r}") + log.explain(f"Crawler section named {section_name!r} exists") names.append(section_name) else: log.explain(f"There's no crawler section named {section_name!r}") @@ -128,16 +128,16 @@ class Pferd: log.report("") log.report(f"[bold bright_cyan]Report[/] for {escape(name)}") - something_happened = False + something_changed = False for path in sorted(crawler.report.added_files): - something_happened = True + something_changed = True log.report(f" [bold bright_green]Added[/] {fmt_path(path)}") for path in sorted(crawler.report.changed_files): - something_happened = True + something_changed = True log.report(f" [bold bright_yellow]Changed[/] {fmt_path(path)}") for path in sorted(crawler.report.deleted_files): - something_happened = True + something_changed = True log.report(f" [bold bright_magenta]Deleted[/] {fmt_path(path)}") - if not something_happened: - log.report(" Nothing happened") + if not something_changed: + log.report(" Nothing changed")