diff --git a/toldg.py b/toldg.py index 0539333..d885413 100644 --- a/toldg.py +++ b/toldg.py @@ -222,7 +222,8 @@ def render_to_file(transactions: List[Transaction], csv_file: str, ledger_file: with open(ledger_file, 'w') as f: f.write(content) status = "update" - logging.info(f"{csv_file:30} -> {ledger_file:30} | {status}") + if status != "no change": + logging.info(f"{csv_file:30} -> {ledger_file:30} | {status}") def write_mappings(unmatched_transactions: List[Transaction], mappings_directory: str): @@ -272,7 +273,8 @@ def process_ldg_file(ldg_file: str, config: Config): if file_age(dest_file) > file_age(ldg_file): shutil.copy(ldg_file, dest_file) status = "update" - logging.info(f"{ldg_file:30} -> {dest_file:30} | {status}") + if status != "no change": + logging.info(f"{ldg_file:30} -> {dest_file:30} | {status}") def main(config):