maleo-foundation 0.1.28__py3-none-any.whl → 0.1.30__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -396,25 +396,21 @@ class ServiceManager:
396
396
  self._loggers.application.info("Detected environment: '%s'", self._settings.ENVIRONMENT)
397
397
  if self._settings.ENVIRONMENT == BaseEnums.EnvironmentType.LOCAL:
398
398
  import importlib.util
399
- import logging
400
399
  import sys
401
400
 
402
- # Configure logging
403
- logging.basicConfig(level=logging.DEBUG)
404
- logger = logging.getLogger(__name__)
405
-
406
401
  # Get the module path and add it to sys.path if needed
407
- logger.info("Getting spec")
402
+ self._loggers.application.info("Getting spec")
408
403
  spec = importlib.util.find_spec("app")
404
+ self._loggers.application.info(f"Spec: {spec}, Origin: {spec.origin}")
409
405
  if spec and spec.origin:
410
406
  module_path = os.path.dirname(os.path.dirname(spec.origin))
411
407
  if module_path not in sys.path:
412
408
  sys.path.insert(0, module_path)
413
409
 
414
- logger.debug(f"Module path: {module_path}")
410
+ self._loggers.application.info(f"Module path: {module_path}")
415
411
  # Create the import string for uvicorn
416
412
  app_import_string = "app.main:app"
417
- logger.debug(f"Using import string: {app_import_string}")
413
+ self._loggers.application.info(f"Using import string: {app_import_string}")
418
414
 
419
415
  try:
420
416
  uvicorn.run(
@@ -426,7 +422,7 @@ class ServiceManager:
426
422
  reload_dirs=[os.path.dirname(os.path.dirname(spec.origin))]
427
423
  )
428
424
  except Exception as e:
429
- logger.error(f"Error starting uvicorn: {e}")
425
+ self._loggers.application.error(f"Error starting uvicorn: {e}")
430
426
  raise
431
427
  else:
432
428
  uvicorn.run(self._app, host=self._configs.service.host, port=self._configs.service.port)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.28
3
+ Version: 0.1.30
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -32,7 +32,7 @@ maleo_foundation/expanded_types/token.py,sha256=4fRTJw6W5MYq71NksNrWNi7qYHQ4_lQw
32
32
  maleo_foundation/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  maleo_foundation/managers/db.py,sha256=Jf0w-9JOAG5X2quDxqqw6d2WUIX7MYGdlPGxWP0rxHs,4699
34
34
  maleo_foundation/managers/middleware.py,sha256=7CDXPMb28AR7J72TWOeKFxOlMypKezEtO9mr53a88B0,4032
35
- maleo_foundation/managers/service.py,sha256=eurfiSoJk9nl26YCDfGzsLsyh7fA0fZ9-VniSLRXZ08,21437
35
+ maleo_foundation/managers/service.py,sha256=m-f7vjiS2pgie4ti_-i9k5UVKbEB4fWBYS8CTOZ-Uuk,21432
36
36
  maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  maleo_foundation/managers/client/base.py,sha256=K8AFV2MTZrC1jbTqxkx7eedmxodJirNIjoRXGGcppy4,1022
38
38
  maleo_foundation/managers/client/http.py,sha256=dWFZlG1z4TERYBITReR5oSrlzvdhh2EtztVnsU8gCeA,2712
@@ -83,7 +83,7 @@ maleo_foundation/utils/logging.py,sha256=MwvZmZSA8SIdfq-knEvpYIgqnSpHcyHrZY9TVHW
83
83
  maleo_foundation/utils/query.py,sha256=ODQ3adOYQNj5E2cRW9ytbjBz56nEDcnfq8mQ6YZbCCM,4375
84
84
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
85
85
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
86
- maleo_foundation-0.1.28.dist-info/METADATA,sha256=7L0bYlqb2NlFBC2KoGS2ALJuTPzXgXP_0x807f4cypk,3190
87
- maleo_foundation-0.1.28.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
88
- maleo_foundation-0.1.28.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
89
- maleo_foundation-0.1.28.dist-info/RECORD,,
86
+ maleo_foundation-0.1.30.dist-info/METADATA,sha256=XJuHMlR8yoOzBFHPmvBxeq-49XHTgBQkzEZCgG_Dp4s,3190
87
+ maleo_foundation-0.1.30.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
88
+ maleo_foundation-0.1.30.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
89
+ maleo_foundation-0.1.30.dist-info/RECORD,,