From 835397a6bab55a932035b5db89951dae74094d61 Mon Sep 17 00:00:00 2001 From: "Charles P." Date: Sat, 6 Jul 2024 18:40:45 +0200 Subject: [PATCH] Default to INFO logging [skip ci] --- generate_geojson.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generate_geojson.py b/generate_geojson.py index 7ab2ec2..c7f34cd 100644 --- a/generate_geojson.py +++ b/generate_geojson.py @@ -1,4 +1,5 @@ import logging +import os import sys import csv import osmium @@ -74,7 +75,10 @@ def generate_geojson(cities_per_institutions, output_file): if __name__ == "__main__": - logging.basicConfig(level=logging.DEBUG) + if os.getenv("RUNNER_DEBUG"): + logging.basicConfig(level=logging.DEBUG) + else: + logging.basicConfig(level=logging.INFO) logging.info("Starting...") if len(sys.argv) != 4: