diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..4efdbb2 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,13 @@ + + + + %d{HH:mm:ss} [%-5level] %logger{20} - %msg%n + + + + + + + + + diff --git a/src/main/resources/scripts/photophetch-ios-helper.py b/src/main/resources/scripts/photophetch-ios-helper.py index ec9d0df..41b70eb 100644 --- a/src/main/resources/scripts/photophetch-ios-helper.py +++ b/src/main/resources/scripts/photophetch-ios-helper.py @@ -69,6 +69,7 @@ async def cmd_list_photos(): return photos = [] + debug_logged = False # log raw stat for first file to help debug date issues for folder in sorted(dcim_entries): folder_path = f'/DCIM/{folder}' @@ -89,6 +90,10 @@ async def cmd_list_photos(): date_iso = None try: info = await afc.stat(device_path) + if not debug_logged: + print(f'DEBUG stat keys: {list(info.keys())}', file=sys.stderr) + print(f'DEBUG stat values: {dict(info)}', file=sys.stderr) + debug_logged = True size_bytes = int(info.get('st_size', 0)) mtime_raw = int(info.get('st_mtime', 0)) # Determine if nanoseconds (>1e15) or seconds (>1e9)