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: