### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened logview error log <img width="1161" alt="Image" src="https://github.com/user-attachments/assets/15389e26-8192-4ae2-b739-130f9b1ee3ea" /> api server error log <img width="1497" alt="Image" src="https://github.com/user-attachments/assets/5739c05c-d5c5-4e53-aa1e-82039886f0a7" /> worker server error log <img width="1023" alt="Image" src="https://github.com/user-attachments/assets/eb2a0166-805b-4f4b-ad4e-5859b97eb5e0" /> ### What you expected to happen Return to normal log ### How to reproduce When line.getBytes(StandardCharsets.UTF_8).length is greater than MaxResponseLogSize, and line.length() is less than MaxResponseLogSize <img width="918" alt="Image" src="https://github.com/user-attachments/assets/72d559a4-5f5c-406e-bdc0-0f31d8973973" /> <img width="835" alt="Image" src="https://github.com/user-attachments/assets/f7de9bc2-e5d7-444f-a886-28a7614cef01" /> ### Anything else _No response_ ### Version 3.1.x ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)