[fix] fix loguru logger for fastapi app
Browse files- samgis/__init__.py +3 -1
samgis/__init__.py
CHANGED
@@ -12,4 +12,6 @@ try:
|
|
12 |
|
13 |
app_logger = Logger(service=SERVICE_NAME)
|
14 |
except ModuleNotFoundError:
|
15 |
-
from
|
|
|
|
|
|
12 |
|
13 |
app_logger = Logger(service=SERVICE_NAME)
|
14 |
except ModuleNotFoundError:
|
15 |
+
from samgis.utilities.fastapi_logger import setup_logging
|
16 |
+
|
17 |
+
app_logger = setup_logging(debug=True)
|