From a37206d6a474804a0f5515387bc1e1278777ed8f Mon Sep 17 00:00:00 2001 From: Marcel Gansfusz Date: Thu, 30 Oct 2025 15:48:51 +0100 Subject: [PATCH] added logging statement --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 8658401..e421051 100644 --- a/app/main.py +++ b/app/main.py @@ -735,7 +735,7 @@ def make_savepath( ftype: str, ) -> os.PathLike: """Generates the path, the file is saved to after the upload process is finished. It creates all nessecery directories.""" - info(f"Started to make Savepath for {fname} in {lva} for prof {prof}.") + info(f"Started to make Savepath for '{fname}' in '{lva}' with prof '{prof}'.") lv = get_lvpath(lva) lvpath = Path(lv[1]) pf = get_profpath(prof, lv[0]) @@ -769,6 +769,7 @@ def make_savepath( destpath = savepath / file i = 0 while destpath.is_file(): + info(f"{destpath} already exists.") file = filename + f"_{i}." + ftype i += 1 destpath = savepath / file