From 949ea9392c625b63b20fceba25e1bea973d68cba Mon Sep 17 00:00:00 2001 From: VarunAnanth2003 Date: Sat, 27 Apr 2024 13:25:49 -0700 Subject: [PATCH] remove minor debugging print statement --- casanovo/data/annotate_db.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/casanovo/data/annotate_db.py b/casanovo/data/annotate_db.py index 3ff3c4b7..db27b05f 100644 --- a/casanovo/data/annotate_db.py +++ b/casanovo/data/annotate_db.py @@ -127,5 +127,6 @@ def annotate_mgf(peak_path: str, tide_path: str, output: Optional[str]): mgf.write(all_spec, output, file_mode="w") logger.info("Annotated .mgf file written to %s.", output) except Exception as e: - print(f"Write to {output} failed. Check if the file path is correct.") - print(e) + logger.error( + "Write to %s failed. Check if the file path is correct.", output + )