Fixed config checker
This commit is contained in:
parent
3f7066c6ed
commit
55c4b3a5a7
1 changed files with 1 additions and 2 deletions
|
@ -189,11 +189,10 @@ def main():
|
||||||
if not config["host"]:
|
if not config["host"]:
|
||||||
logger.error("No host specified, please set QBITTORRENT_HOST environment variable")
|
logger.error("No host specified, please set QBITTORRENT_HOST environment variable")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if not config["post"]:
|
if not config["port"]:
|
||||||
logger.error("No post specified, please set QBITTORRENT_PORT environment variable")
|
logger.error("No post specified, please set QBITTORRENT_PORT environment variable")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
# Register our custom collector
|
# Register our custom collector
|
||||||
logger.info("Exporter is starting up")
|
logger.info("Exporter is starting up")
|
||||||
REGISTRY.register(QbittorrentMetricsCollector(config))
|
REGISTRY.register(QbittorrentMetricsCollector(config))
|
||||||
|
|
Loading…
Reference in a new issue