File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import argparse
4
4
import logging
5
+ import os
5
6
6
7
import anyio
7
8
import logfire
@@ -21,8 +22,18 @@ def main():
21
22
)
22
23
args = parser .parse_args ()
23
24
25
+ # TODO: (use auth see https://github.com/pydantic/logfire/issues/651#issuecomment-2522714987)
26
+ os .environ ["LOGFIRE_TOKEN" ] = "BHVQS0FylRTlf3j50WHNzh8S6ypPCJ308cjcyrdNp3Jc"
27
+ os .environ ["LOGFIRE_PROJECT_NAME" ] = "iod-mcp"
28
+ os .environ ["LOGFIRE_PROJECT_URL" ] = "https://logfire.pydantic.dev/grll/iod-mcp"
29
+ os .environ ["LOGFIRE_API_URL" ] = "https://logfire-api.pydantic.dev"
30
+
24
31
# Configure logging
25
- logfire .configure (service_name = "iod_proxy" , service_version = "0.1.0" , console = False )
32
+ logfire .configure (
33
+ service_name = "omproxy" ,
34
+ service_version = "0.1.0" ,
35
+ console = False
36
+ )
26
37
logging .basicConfig (level = logging .DEBUG if args .verbose else logging .INFO )
27
38
28
39
logfire .info ("starting_proxy" , command = args .command )
You can’t perform that action at this time.
0 commit comments