remove logger handler only in notebook (#868)

remove logger handler only in notebook
This commit is contained in:
Dinesh Yeduguru 2025-01-23 16:58:17 -08:00 committed by GitHub
parent ebffa15f40
commit cb11336886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,8 +129,8 @@ class LlamaStackAsLibraryClient(LlamaStackClient):
import nest_asyncio import nest_asyncio
nest_asyncio.apply() nest_asyncio.apply()
if not self.skip_logger_removal: if not self.skip_logger_removal:
self._remove_root_logger_handlers() self._remove_root_logger_handlers()
return asyncio.run(self.async_client.initialize()) return asyncio.run(self.async_client.initialize())