When listing knowledge bases, searching their files or listing a knowledge base's files hit an error, the page just showed an empty list and the error was printed to stdout as a single bare line, outside the normal log format and without a traceback. These errors now go through the server log with the full traceback, like the other knowledge base errors already do. The page still shows an empty list in that case.
Fixes#35317