(params: Any)
| 341 | entry_type = self._CATEGORY_ENTRY_TYPES[category] |
| 342 | |
| 343 | def _dispatch(params: Any) -> None: |
| 344 | if not isinstance(params, dict) or params.get("type") != entry_type: |
| 345 | return |
| 346 | if legacy: |
| 347 | payload = _legacy_log_entry(params) |
| 348 | elif category == self.CONSOLE: |
| 349 | payload = console_message_from_log_entry(params) |
| 350 | else: |
| 351 | payload = script_error_from_log_entry(params) |
| 352 | callback(payload) |
| 353 | |
| 354 | conn = self._script._conn |
| 355 | with self._lock: |
nothing calls this directly
no test coverage detected