mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Merge pull request #3147 from BigRoy/hooks_cosmetics
Hooks: Tweak logging grammar
This commit is contained in:
commit
3218860413
1 changed files with 8 additions and 6 deletions
|
|
@ -1012,8 +1012,8 @@ class ApplicationLaunchContext:
|
|||
self.log.debug("Discovery of launch hooks started.")
|
||||
|
||||
paths = self.paths_to_launch_hooks()
|
||||
self.log.debug("Paths where will look for launch hooks:{}".format(
|
||||
"\n- ".join(paths)
|
||||
self.log.debug("Paths searched for launch hooks:\n{}".format(
|
||||
"\n".join("- {}".format(path) for path in paths)
|
||||
))
|
||||
|
||||
all_classes = {
|
||||
|
|
@ -1023,7 +1023,7 @@ class ApplicationLaunchContext:
|
|||
for path in paths:
|
||||
if not os.path.exists(path):
|
||||
self.log.info(
|
||||
"Path to launch hooks does not exists: \"{}\"".format(path)
|
||||
"Path to launch hooks does not exist: \"{}\"".format(path)
|
||||
)
|
||||
continue
|
||||
|
||||
|
|
@ -1044,13 +1044,14 @@ class ApplicationLaunchContext:
|
|||
hook = klass(self)
|
||||
if not hook.is_valid:
|
||||
self.log.debug(
|
||||
"Hook is not valid for current launch context."
|
||||
"Skipped hook invalid for current launch context: "
|
||||
"{}".format(klass.__name__)
|
||||
)
|
||||
continue
|
||||
|
||||
if inspect.isabstract(hook):
|
||||
self.log.debug("Skipped abstract hook: {}".format(
|
||||
str(hook)
|
||||
klass.__name__
|
||||
))
|
||||
continue
|
||||
|
||||
|
|
@ -1062,7 +1063,8 @@ class ApplicationLaunchContext:
|
|||
|
||||
except Exception:
|
||||
self.log.warning(
|
||||
"Initialization of hook failed. {}".format(str(klass)),
|
||||
"Initialization of hook failed: "
|
||||
"{}".format(klass.__name__),
|
||||
exc_info=True
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue