We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de591f commit 4deda84Copy full SHA for 4deda84
1 file changed
main.py
@@ -4,8 +4,9 @@
4
# SPDX-License-Identifier: AGPL-3.0-or-later
5
#
6
import logging
7
-from os import getenv
+from os import cpu_count, getenv
8
9
+import psutil
10
import uvicorn
11
from nc_py_api.ex_app import run_app
12
@@ -48,6 +49,7 @@ def _setup_log_levels(debug: bool):
48
49
app_config: TConfig = app.extra['CONFIG']
50
_setup_log_levels(app_config.debug)
51
52
+ print(f'CPU count: {cpu_count()}, Memory: {psutil.virtual_memory()}')
53
print('App config:\n' + redact_config(app_config).model_dump_json(indent=2), flush=True)
54
55
uv_log_config = uvicorn.config.LOGGING_CONFIG # pyright: ignore[reportAttributeAccessIssue]
0 commit comments