Skip to content

feat: add debug logging to all action/mutation functions#105

Merged
larkly merged 2 commits intomainfrom
fix/chained-refresh-ticks
Mar 30, 2026
Merged

feat: add debug logging to all action/mutation functions#105
larkly merged 2 commits intomainfrom
fix/chained-refresh-ticks

Conversation

@larkly
Copy link
Copy Markdown
Owner

@larkly larkly commented Mar 30, 2026

Summary

  • Add shared.Debugf logging to all 58 action/mutation functions across 18 files
  • Covers server CRUD, volume ops, FIP ops, router/network/SG ops, LB delete
  • All create modals, picker views, and server operations (rename, rebuild, resize, snapshot)
  • Each action logs before API call, after success, and after error
  • Complements the existing refresh-cycle debug logging from feat: expand debug logging to all views and app-level tick handling #98

Test plan

  • Run with --debug, create a server, check log shows [servercreate] entries
  • Delete a resource, check log shows [action] entries
  • go build ./... and go test ./... pass

larkly added 2 commits March 30, 2026 13:12
Every view now logs Init, ForceRefresh, tick handling, fetch start/end,
loaded/error messages via shared.Debugf. Run with --debug to write
timestamped logs to ~/.cache/lazystack/debug.log for diagnosing API
call patterns, tick behavior, and request timing across all views.
Instrument all 58 action functions across 18 files with shared.Debugf:
- App-level actions: server CRUD, volume attach/detach/delete, FIP
  allocate/release/associate, router/network/subnet/SG delete, LB delete
- Create modals: server, volume, keypair, network, router, subnet,
  security group, SG rule
- Picker views: server picker (attach), FIP picker (associate),
  subnet picker (add interface)
- Server operations: rename, rebuild, snapshot, resize

Each action logs before the API call, after success, and after error.
@larkly larkly merged commit 6b00a67 into main Mar 30, 2026
3 checks passed
@larkly larkly deleted the fix/chained-refresh-ticks branch March 30, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant