From 2999bf80da730e5951ce10a2468da2474699399f Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Thu, 17 Apr 2025 09:39:26 -0500 Subject: [PATCH] Add debug logging to directory write test --- src/stock_manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stock_manager.py b/src/stock_manager.py index 68cca113..419e7513 100644 --- a/src/stock_manager.py +++ b/src/stock_manager.py @@ -58,6 +58,11 @@ class StockManager: # Directory exists, check if writable by trying to create a temp file try: temp_file_path = os.path.join(self.logo_dir, "write_test_py.tmp") + abs_path = os.path.abspath(temp_file_path) + cwd = os.getcwd() + euid = os.geteuid() + egid = os.getegid() + logger.debug(f"Write test: UID={euid}, GID={egid}, CWD='{cwd}', Path='{abs_path}'") with open(temp_file_path, 'w') as f: f.write('test') os.remove(temp_file_path)