mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
17 lines
507 B
Python
17 lines
507 B
Python
import logging
|
|
|
|
import ray.dashboard.modules.log.log_utils as log_utils
|
|
import ray.dashboard.utils as dashboard_utils
|
|
|
|
logger = logging.getLogger(__name__)
|
|
routes = dashboard_utils.ClassMethodRouteTable
|
|
|
|
|
|
class LogAgent(dashboard_utils.DashboardAgentModule):
|
|
def __init__(self, dashboard_agent):
|
|
super().__init__(dashboard_agent)
|
|
log_utils.register_mimetypes()
|
|
routes.static("/logs", self._dashboard_agent.log_dir, show_index=True)
|
|
|
|
async def run(self, server):
|
|
pass
|