Skip to content

Commit

Permalink
debug monitor init
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Jan 19, 2024
1 parent 6e1a9c5 commit e57ef98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/agentscope/utils/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ def __init__(
self.db_path = db_path
self.table_name = table_name
self._create_monitor_table(drop_exists)
logger.info(
f"SqliteMonitor initialization completed at [{self.db_path}]")

def _create_monitor_table(self, drop_exists: bool = False) -> None:
"""Internal method to create a table in sqlite3."""
Expand Down Expand Up @@ -335,6 +337,9 @@ def _create_monitor_table(self, drop_exists: bool = False) -> None:
END;
""",
)
logger.info(f'Init [{self.table_name}] as the monitor table')
logger.info(
f'Init [{self.table_name}_quota_exceeded] as the monitor trigger')

def register(
self,
Expand Down

0 comments on commit e57ef98

Please sign in to comment.