mirror of
https://github.com/vale981/ray
synced 2025-03-09 04:46:38 -04:00
20 lines
532 B
Python
20 lines
532 B
Python
![]() |
import logging
|
||
|
|
||
|
import mimetypes
|
||
|
|
||
|
import ray.new_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)
|
||
|
mimetypes.add_type("text/plain", ".err")
|
||
|
mimetypes.add_type("text/plain", ".out")
|
||
|
routes.static("/logs", self._dashboard_agent.log_dir, show_index=True)
|
||
|
|
||
|
async def run(self, server):
|
||
|
pass
|