From 638e17b35aa2a004995143ddfb1277df73b463f3 Mon Sep 17 00:00:00 2001 From: Erik Jaegervall Date: Fri, 2 Feb 2024 13:35:21 +0100 Subject: [PATCH] Give warning if using gps provider from this repo --- .pre-commit-config.yaml | 4 ++-- gps2val/gpsd_feeder.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 653f3498..3e4edccb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.5.0 hooks: - id: trailing-whitespace exclude_types: ["dbc"] @@ -13,6 +13,6 @@ repos: - id: check-added-large-files - repo: https://github.com/pycqa/flake8 - rev: '6.0.0' + rev: '7.0.0' hooks: - id: flake8 diff --git a/gps2val/gpsd_feeder.py b/gps2val/gpsd_feeder.py index c17583b8..177b33fd 100755 --- a/gps2val/gpsd_feeder.py +++ b/gps2val/gpsd_feeder.py @@ -243,6 +243,9 @@ def shutdown(self): # set root loglevel etc init_logging(loglevels["root"]) + log.warn("GPS Feeder has migrated to a new repository") + log.info("Consider using GPS provider in https://github.com/eclipse-kuksa/kuksa-gps-provider instead") + # set loglevels for other loggers for logger, level in loglevels.items(): if logger != "root":