Skip to content

Commit

Permalink
Merge pull request #140 from stynoo/patch-1
Browse files Browse the repository at this point in the history
Update sync.py: include version in debug logs
  • Loading branch information
longstone authored Oct 2, 2023
2 parents 23c9eeb + 96f0d3f commit 51b6b70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions withings_sync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import json

from datetime import date, datetime
from importlib.metadata import version

from withings_sync.withings2 import WithingsAccount
from withings_sync.garmin import GarminConnect
Expand Down Expand Up @@ -498,6 +499,7 @@ def main():
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
stream=sys.stdout,
)
logging.debug("withings-sync script version %s", version("withings-sync"))
logging.debug("Script invoked with the following arguments: %s", ARGS)

if sys.version_info < (3, 7):
Expand Down

0 comments on commit 51b6b70

Please sign in to comment.