Example #1
0
 def __init__(self, dashboard_head):
     super().__init__(dashboard_head)
     # We disable auto_decompress when forward / proxy log url.
     self._proxy_session = aiohttp.ClientSession(auto_decompress=False)
     log_utils.register_mimetypes()
     routes.static("/logs", self._dashboard_head.log_dir, show_index=True)
     GlobalSignals.node_info_fetched.append(
         self.insert_log_url_to_node_info)
     GlobalSignals.node_summary_fetched.append(
         self.insert_log_url_to_node_info)
Example #2
0
 def __init__(self, dashboard_agent):
     super().__init__(dashboard_agent)
     log_utils.register_mimetypes()
     routes.static("/logs", self._dashboard_agent.log_dir, show_index=True)