Skip to content

Commit 6def50b

Browse files
committed
fix: logging은 base.py에서 수행하도록 수정
1 parent 4835238 commit 6def50b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/openstack_mcp_server/tools/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import openstack
2+
3+
from openstack_mcp_server import config
14
from openstack_mcp_server.tools.connection import ConnectionManager
25

36

47
_connection_manager = ConnectionManager()
58

9+
openstack.enable_logging(debug=config.MCP_DEBUG_MODE)
10+
611

712
def get_openstack_conn():
813
return _connection_manager.get_connection()

src/openstack_mcp_server/tools/connection.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
class ConnectionManager:
1111
_cloud_name = config.MCP_CLOUD_NAME
1212

13-
def __init__(self):
14-
openstack.enable_logging(debug=config.MCP_DEBUG_MODE)
15-
1613
def register_tools(self, mcp: FastMCP):
1714
mcp.tool(self.get_cloud_config)
1815
mcp.tool(self.get_cloud_names)

0 commit comments

Comments
 (0)