set loglevels sooner
This commit is contained in:
parent
bba900d8f8
commit
322b6a0d52
@ -52,6 +52,9 @@ def main():
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if args.debug:
|
||||||
|
logging.getLogger().setLevel(logging.DEBUG)
|
||||||
|
|
||||||
if args.version:
|
if args.version:
|
||||||
print("OpenWebRX version {version}".format(version=openwebrx_version))
|
print("OpenWebRX version {version}".format(version=openwebrx_version))
|
||||||
return 0
|
return 0
|
||||||
@ -84,13 +87,14 @@ Support and info: https://groups.io/g/openwebrx
|
|||||||
for sig in [signal.SIGINT, signal.SIGTERM]:
|
for sig in [signal.SIGINT, signal.SIGTERM]:
|
||||||
signal.signal(sig, handleSignal)
|
signal.signal(sig, handleSignal)
|
||||||
|
|
||||||
# config warmup
|
|
||||||
Config.validateConfig()
|
|
||||||
coreConfig = CoreConfig()
|
coreConfig = CoreConfig()
|
||||||
|
|
||||||
# passed loglevel takes priority (used for the --debug argument)
|
# passed loglevel takes priority (used for the --debug argument)
|
||||||
logging.getLogger().setLevel(coreConfig.get_log_level() if loglevel is None else loglevel)
|
logging.getLogger().setLevel(coreConfig.get_log_level() if loglevel is None else loglevel)
|
||||||
|
|
||||||
|
# config warmup
|
||||||
|
Config.validateConfig()
|
||||||
|
|
||||||
featureDetector = FeatureDetector()
|
featureDetector = FeatureDetector()
|
||||||
failed = featureDetector.get_failed_requirements("core")
|
failed = featureDetector.get_failed_requirements("core")
|
||||||
if failed:
|
if failed:
|
||||||
|
Loading…
Reference in New Issue
Block a user