xmas-app 0.11.1__tar.gz → 0.11.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmas-app
3
- Version: 0.11.1
3
+ Version: 0.11.2
4
4
  Summary: The XLeitstelle model-driven application schema app.
5
5
  License: EUPL-1.2-or-later
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xmas-app"
3
- version = "0.11.1"
3
+ version = "0.11.2"
4
4
  description = "The XLeitstelle model-driven application schema app."
5
5
  authors = [{ name = "Tobias Kraft", email = "tobias.kraft@gv.hamburg.de" }]
6
6
  classifiers = [
@@ -44,7 +44,7 @@ def _resolve_log_dir() -> Path:
44
44
  return Path(gettempdir()) / "xmas_log"
45
45
  else:
46
46
  # dev: local repo logs
47
- return Path(__file__).parent
47
+ return Path(__file__).parent.parent
48
48
 
49
49
 
50
50
  log_dir = _resolve_log_dir()
@@ -52,6 +52,7 @@ log_dir.mkdir(exist_ok=True)
52
52
  log_file = log_dir / "xmas_app.log"
53
53
 
54
54
  logger = logging.getLogger("xmas_app")
55
+ logger.propagate = False
55
56
 
56
57
  logger.handlers.clear()
57
58
  logger.setLevel(logging.DEBUG if settings.debug else logging.INFO)
@@ -1231,15 +1232,14 @@ async def receive_split_plans(payload: SplitPayload) -> SplitSuccess:
1231
1232
 
1232
1233
  @asynccontextmanager
1233
1234
  async def lifespan(starlette_app):
1234
- logger.info(
1235
- f"NiceGUI server is running on port {settings.app_port} in {settings.app_mode} mode."
1236
- )
1237
- print(
1238
- f"NiceGUI server is running on port {settings.app_port} in {settings.app_mode} mode."
1235
+ msg = (
1236
+ f"XMAS-App is running on port {settings.app_port} in {settings.app_mode} mode."
1239
1237
  )
1238
+ logger.info(msg)
1239
+ print(msg)
1240
1240
  yield
1241
- logger.info("Server is shutting down.")
1242
- print("Server is shutting down.")
1241
+ logger.info("XMAS-App is shutting down.")
1242
+ print("XMAS-App is shutting down.")
1243
1243
 
1244
1244
 
1245
1245
  starlette_app = Starlette(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes