mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-26 04:57:18 +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
|
a.packageVersion = packageVersion
|
||||||
nodeTypes.extend(p)
|
nodeTypes.extend(p)
|
||||||
except Exception as e:
|
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:
|
if errors:
|
||||||
print('== Error while loading the following plugins: ==')
|
logging.warning('== Error while loading the following plugins ==\n'
|
||||||
print('\n'.join(errors))
|
'{}\n'
|
||||||
print('================================================')
|
.format('\n'.join(errors)))
|
||||||
return nodeTypes
|
return nodeTypes
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue