mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use logger from backend with fallback to nxtools
This commit is contained in:
parent
0ec82bd34d
commit
7a7f4b44a0
2 changed files with 7 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ attrs = "^25.0.0"
|
|||
pyblish-base = "^1.8.7"
|
||||
clique = "^2.0.0"
|
||||
opentimelineio = "^0.17.0"
|
||||
nxtools = "^1.6"
|
||||
|
||||
|
||||
[tool.ruff]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@ from ayon_server.actions import (
|
|||
ExecuteResponseModel,
|
||||
SimpleActionManifest,
|
||||
)
|
||||
try:
|
||||
from ayon_server.logging import logger
|
||||
except ImportError:
|
||||
from nxtools import logging as logger
|
||||
|
||||
from .settings import (
|
||||
CoreSettings,
|
||||
|
|
@ -74,7 +78,7 @@ class CoreAddon(BaseServerAddon):
|
|||
f"{IDENTIFIER_PREFIX}.create_project_structure":
|
||||
|
||||
if not project_name:
|
||||
raise ValueError(
|
||||
logger.error(
|
||||
f"Can't execute {executor.identifier} because"
|
||||
" of missing project name."
|
||||
)
|
||||
|
|
@ -87,4 +91,4 @@ class CoreAddon(BaseServerAddon):
|
|||
]
|
||||
)
|
||||
|
||||
raise ValueError(f"Unknown action: {executor.identifier}")
|
||||
logger.debug(f"Unknown action: {executor.identifier}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue