ynput / ayon-core

Apache License 2.0
18 stars 30 forks source link

Collect Farm Target: Only report errors for not found addons if no valid farm addon found #637

Closed BigRoy closed 3 weeks ago

BigRoy commented 3 weeks ago

Changelog Description

Only report errors for not found addons if no valid farm addon found

Additional info

Solved redundant error logs for e.g. royalrender addon even if the studio isn't using it. Now it only logs errors for not found addons if NO valid farm addon is found at all.

Avoids this error log if it's irrelevant:

image

These error logs were also visibile in screenshots here: https://github.com/ynput/ayon-core/pull/623#pullrequestreview-2109615241

Testing notes:

  1. Publishing to Deadline and Royal Render should still work

Note that with this change if both Royal Render and Deadline are enabled addons that now Deadline takes precedence where with the old logic Royal Render would be picked.