mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
remove duplication for verbose options
This commit is contained in:
parent
ad1d97f202
commit
c1a862d0cd
1 changed files with 1 additions and 9 deletions
|
@ -209,15 +209,7 @@ class MeshroomApp(QApplication):
|
||||||
self.debugger = QQmlDebuggingEnabler(printWarning=True)
|
self.debugger = QQmlDebuggingEnabler(printWarning=True)
|
||||||
qtArgs = [f"-qmljsdebugger={debuggerParams}"]
|
qtArgs = [f"-qmljsdebugger={debuggerParams}"]
|
||||||
|
|
||||||
logStringToPython = {
|
logging.getLogger().setLevel(meshroom.logStringToPython[args.verbose])
|
||||||
'fatal': logging.FATAL,
|
|
||||||
'error': logging.ERROR,
|
|
||||||
'warning': logging.WARNING,
|
|
||||||
'info': logging.INFO,
|
|
||||||
'debug': logging.DEBUG,
|
|
||||||
'trace': logging.DEBUG,
|
|
||||||
}
|
|
||||||
logging.getLogger().setLevel(logStringToPython[args.verbose])
|
|
||||||
|
|
||||||
super(MeshroomApp, self).__init__(inputArgs[:1] + qtArgs)
|
super(MeshroomApp, self).__init__(inputArgs[:1] + qtArgs)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue