]> git.openstreetmap.org Git - nominatim.git/commitdiff
print project directory before running any command
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 2 Feb 2021 10:19:31 +0000 (11:19 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 2 Feb 2021 10:19:31 +0000 (11:19 +0100)
nominatim/cli.py

index 4873308deb19cac7da2144fc231b9c39e43561c4..f8ffe2d2ace9726d01b3e801cc1affdedea6827d 100644 (file)
@@ -90,10 +90,12 @@ class CommandlineParser:
 
         args.config = Configuration(args.project_dir, args.data_dir / 'settings')
 
+        log = logging.getLogger()
+        log.warn('Using project directory: %s', str(args.project_dir))
+
         try:
             return args.command.run(args)
         except UsageError as exception:
-            log = logging.getLogger()
             if log.isEnabledFor(logging.DEBUG):
                 raise # use Python's exception printing
             log.fatal('FATAL: %s', exception)