Repository navigation
0.007
Pre-release
Pre-release
fix: db migration abort on error, JSON marshal fallbacks, TCP dead-connection detection, logger rotation error logging, lastEventAt on reload, misbehaving button wiring
db.go:
- execMigrate now returns error; migrate() aborts on first real failure (not 'duplicate column')
- InsertEvent uses '{}' fallback when json.Marshal(event.Details) fails instead of empty string
- InsertTraceroute initializes each JSON var to schema default before marshal, checks each independently
- misbehave_notifications added to CleanupOld intTables retention sweep
app.go:
- runReadLoop: consecutive read timeout counter (240 = ~2 min) for TCP dead-connection detection, forces reconnect
store.go:
- LoadEvents sets lastEventAt from the latest replayed event so /api/health doesn't report stale after restart
logger.go:
- ensureFile/ensureFwFile/ensureRawFile now log Close/Sync errors on rotation instead of discarding them
misbehaving.js / app.js:
- initMisbehavingButtons() wires Apply/Save/Reset/Notify/Clear-log buttons to their API endpoints
- Clear log button sends DELETE /api/misbehaving/notifications with confirmation prompt
- Live template preview refreshes on every keystroke in the textarea
- Called once on first tab switch, guarded by _misbBound flag