added log

This commit is contained in:
Jakub Trllo 2025-07-21 19:26:47 +02:00
parent 60f1fa8961
commit ec3eaeb751

View file

@ -243,6 +243,11 @@ class TrayManager:
project_bundle = os.getenv("AYON_BUNDLE_NAME")
studio_bundle = os.getenv("AYON_STUDIO_BUNDLE_NAME")
if studio_bundle and project_bundle != studio_bundle:
self.log.info(
f"Project bundle '{project_bundle}' is defined, but tray"
" cannot be running in project scope. Restarting tray to use"
" studio bundle."
)
self.restart()
def get_services_submenu(self):