mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-24 03:57:28 +02:00
[core] use logging to report plugin loading errors
This commit is contained in:
parent
773d9a6eed
commit
94b895ae7c
1 changed files with 4 additions and 4 deletions
|
@ -66,12 +66,12 @@ def loadPlugins(folder, packageName, classType):
|
|||
a.packageVersion = packageVersion
|
||||
nodeTypes.extend(p)
|
||||
except Exception as e:
|
||||
errors.append(' * Errors while loading "{}".\n File: {}\n {}'.format(pluginName, pluginFile, str(e)))
|
||||
errors.append(' * {}: {}'.format(pluginName, str(e)))
|
||||
|
||||
if errors:
|
||||
print('== Error while loading the following plugins: ==')
|
||||
print('\n'.join(errors))
|
||||
print('================================================')
|
||||
logging.warning('== Error while loading the following plugins ==\n'
|
||||
'{}\n'
|
||||
.format('\n'.join(errors)))
|
||||
return nodeTypes
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue