feat: comprehensive INFO/WARN/ERROR logging across all controller modules
Add structured operational logging at INFO, WARN, and ERROR levels to every controller module. Standardize custom prefixes ([GEO], [SCHED], [SYNC]) to use [INFO/WARN/ERROR] [module] format. Fix misleveled logs (WARN->ERROR for data loss scenarios, WARN->INFO for routine operations). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,51 @@
|
||||
## Changelog
|
||||
|
||||
### v0.32.2 — Comprehensive INFO/WARN/ERROR logging across all modules (2026-02-26)
|
||||
|
||||
#### Added
|
||||
- **stacks/manager.go**: INFO logs for status refresh container/stack counts, log fetching, encryption migration, ScanStacks completion
|
||||
- **stacks/deploy.go**: INFO logs for config updates, InjectMissingFields summary; ERROR logs for SaveAppConfig failures; WARN for LoadAppConfig errors
|
||||
- **stacks/delete.go**: INFO log for ParseComposeHDDMounts result count
|
||||
- **stacks/metadata.go**: Fixed LoadMetadata error to use `log.Printf` instead of `fmt.Fprintf(os.Stderr)`
|
||||
- **backup/backup.go**: WARN for perDriveRepoStats failures; INFO for drive stats, aggregate stats, dump file count, snapshot history save
|
||||
- **backup/crossdrive.go**: INFO for cross-drive backup start/completion with success/fail counts; ERROR for rsync failures; INFO for DB dump copy counts
|
||||
- **backup/restic.go**: INFO for Snapshot and Check success
|
||||
- **backup/dbdump.go**: INFO for DiscoverDatabases count; INFO for DumpAll start/completion
|
||||
- **backup/restore_drives_linux.go**: INFO for fstab entry additions
|
||||
- **backup/local_infra.go**: INFO for backup version pruning with kept/removed counts
|
||||
- **cloudflare/geosync.go**: Standardized all `[GEO]` prefixed logs to `[INFO]/[WARN]/[ERROR] [cloudflare]` format
|
||||
- **scheduler/scheduler.go**: Standardized all `[SCHED]` prefixed logs to `[INFO]/[WARN]/[ERROR] [scheduler]` format
|
||||
- **sync/sync.go**: INFO for catalog sync start/completion; ERROR for git/network failures; WARN for file copy errors (replaced `[SYNC]` prefix)
|
||||
- **report/pusher.go**: WARN for Push and InfraBackup push failures
|
||||
- **report/builder.go**: INFO for BuildReport start
|
||||
- **monitor/healthcheck.go**: WARN for CPU/memory/disk/temperature threshold breaches; INFO for health check result status
|
||||
- **system/mounts_linux.go**: WARN for unsafe backup destinations and storage path probe failures
|
||||
- **settings/settings.go**: INFO for settings load/save, storage path add/remove, disconnect/decommission, pending events; ERROR for save failures
|
||||
- **storage/attach_linux.go**: INFO for disk attach start/success; ERROR for attach failures
|
||||
- **storage/scan_linux.go**: INFO for disk scan start/completion with count
|
||||
- **storage/format_linux.go**: INFO for format start/success; ERROR for format failures
|
||||
- **storage/migrate.go**: INFO for migration start/completion; ERROR for migration failures
|
||||
- **integrations/manager.go**: ERROR for integration apply failures; WARN for context build and env load failures
|
||||
- **integrations/lifecycle.go**: Added `[integrations]` module tag to all logs; upgraded re-apply failure from WARN to ERROR
|
||||
- **integrations/onlyoffice_filebrowser.go**: ERROR for all Apply/Revoke error paths
|
||||
- **integrations/onlyoffice_nextcloud.go**: ERROR for all Apply/Revoke error paths
|
||||
- **selfupdate/updater.go**: INFO for up-to-date and update-available results; INFO/ERROR for compose file updates
|
||||
- **selfupdate/state.go**: INFO for state cleared
|
||||
- **assets/syncer.go**: ERROR for manifest save failures (previously silent); changed sync failure log from WARN to ERROR
|
||||
- **appexport/restore.go**: INFO for import start
|
||||
- **web/auth.go**: INFO for logout/session invalidation/session cleanup; WARN for unauthorized API requests
|
||||
- **web/server.go**: WARN for 404 Not Found on unknown routes
|
||||
- **web/handlers.go**: INFO for default storage path and schedulable state changes
|
||||
- **web/handler_restore.go**: INFO for restore-all initiation
|
||||
- **web/handler_export.go**: ERROR for export/import start failures
|
||||
- **web/storage_handlers.go**: INFO for disk disconnect/reconnect/restart-apps completion
|
||||
- **api/router.go**: ERROR for stack action failures, backup snapshot listing failures, metrics query failures
|
||||
|
||||
#### Changed
|
||||
- **stacks/healthprobe.go**: Summary log now always prints — WARN when unhealthy, INFO when all ok (was debug-only for all-ok)
|
||||
- **backup/restore.go**: Changed RestoreApp start log from `[WARN]` to `[INFO] [backup]`
|
||||
- **backup/restore_app_linux.go**: Changed restoreUserData/restoreDBDumps failure logs from `[WARN]` to `[ERROR]` where data loss could occur
|
||||
|
||||
### v0.32.1 — Comprehensive debug logging across all modules (2026-02-26)
|
||||
|
||||
#### Added
|
||||
|
||||
Reference in New Issue
Block a user