]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/cli.py
print project directory before running any command
[nominatim.git] / 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)