aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-import
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-06-11 22:08:49 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-06-11 22:08:54 +0200
commit42cfe748e23bad6fc51b14a3e5896a77fdb5c1d5 (patch)
treec356f25e90bda1d92b2be51e9c09c1cc677bd752 /webmap-import
parentf91fbc6972eb7f1451ea604b232eff8506d2c6ab (diff)
Use systemd.journal to log to journald when sarted via .service files.
This enables proper filtering by level etc. (incl. journald coloring).
Diffstat (limited to 'webmap-import')
-rwxr-xr-xwebmap-import2
1 files changed, 1 insertions, 1 deletions
diff --git a/webmap-import b/webmap-import
index 1bb235a..5cfe003 100755
--- a/webmap-import
+++ b/webmap-import
@@ -1013,7 +1013,7 @@ def importSource2(lyr_dst, path, args={}, basedir=None, extent=None):
if __name__ == '__main__':
- logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
+ common.init_logger(app=os.path.basename(__file__), level=logging.INFO)
parser = argparse.ArgumentParser(description='Extract and import GIS layers.')
parser.add_argument('--cachedir', default=None,