refactor(src/shared): replace print statements with logger.error

Use centralized logging instead of stdout prints to improve observability and consistency
This commit is contained in:
sankalp committed 2026-06-17 05:21:02 +05:45
1 parent 48231b3bc2
commit 1aed6ea816
6 files changed
+26 -20

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
from fabric.utils import logger
import json
from fabric.utils import Gdk, GLib, get_relative_path, os
@@ -41,7 +42,7 @@ def load_config():
with open(CONFIG_FILE, "r") as f:
config = json.load(f)
except Exception as e:
print(f"Error loading config: {e}")
logger.error(f"Error loading config: {e}")
return config