mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +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)
|
||||
qtArgs = [f"-qmljsdebugger={debuggerParams}"]
|
||||
|
||||
logStringToPython = {
|
||||
'fatal': logging.FATAL,
|
||||
'error': logging.ERROR,
|
||||
'warning': logging.WARNING,
|
||||
'info': logging.INFO,
|
||||
'debug': logging.DEBUG,
|
||||
'trace': logging.DEBUG,
|
||||
}
|
||||
logging.getLogger().setLevel(logStringToPython[args.verbose])
|
||||
logging.getLogger().setLevel(meshroom.logStringToPython[args.verbose])
|
||||
|
||||
super(MeshroomApp, self).__init__(inputArgs[:1] + qtArgs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue