A cross platform Audiobookshelf client for Android and iOS
Dart
Log the app version at session start so it doesn't go stale across an update
Barnabasfbd5c7b14a6d
diff --git a/lib/services/log_service.dart b/lib/services/log_service.dartindex 99124b4a..def966e9 100644--- a/lib/services/log_service.dart+++ b/lib/services/log_service.dart@@ -69,10 +69,12 @@ class LogService {// Rotate on startup if neededawait _rotateIfNeeded();- // Session header+ // Session header - stamps the app version here too, since the file+ // header above only gets rewritten on clear/24h rollover and can go+ // stale across an app update in between.final now = DateTime.now().toIso8601String();await _logFile!.writeAsString(- '\n=== Session started $now ===\n',+ '\n=== Session started $now (App Version: ${ApiService.appVersionFull}) ===\n',mode: FileMode.append,);