feat(logging): initialize logging on server startup
This commit is contained in:
@@ -11,6 +11,7 @@ from mcp.server.sse import SseServerTransport
|
|||||||
from grist_mcp.server import create_server
|
from grist_mcp.server import create_server
|
||||||
from grist_mcp.config import Config, load_config
|
from grist_mcp.config import Config, load_config
|
||||||
from grist_mcp.auth import Authenticator, AuthError
|
from grist_mcp.auth import Authenticator, AuthError
|
||||||
|
from grist_mcp.logging import setup_logging
|
||||||
|
|
||||||
|
|
||||||
Scope = dict[str, Any]
|
Scope = dict[str, Any]
|
||||||
@@ -195,6 +196,8 @@ def main():
|
|||||||
external_port = int(os.environ.get("EXTERNAL_PORT", str(port)))
|
external_port = int(os.environ.get("EXTERNAL_PORT", str(port)))
|
||||||
config_path = os.environ.get("CONFIG_PATH", "/app/config.yaml")
|
config_path = os.environ.get("CONFIG_PATH", "/app/config.yaml")
|
||||||
|
|
||||||
|
setup_logging()
|
||||||
|
|
||||||
if not _ensure_config(config_path):
|
if not _ensure_config(config_path):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user