Commit Graph

8 Commits

Author SHA1 Message Date
iacore 0ea2ec816f [i18n] fix jet template rewriter 2024-10-09 14:31:15 +00:00
iacore 2f4e95d002 Capture error strings for i18n 2024-10-05 15:19:22 +00:00
perennial 6492663203 Refactor audit Init function for readability
Simplify the conditional logic in the Init function by using an early
return when optionSaveResponse is false. Move the MaxRecordedCount
assignment and directory creation outside the conditional block to
improve code structure and readability.
2024-09-20 18:30:17 +10:00
perennial 2647143a05 Add logging statements in audit 2024-09-20 18:28:44 +10:00
perennial 6a6fb803a4 Remove redundant responseSaveLocation variable
Replace local responseSaveLocation variable in audit_init.go
with direct references to config.GlobalConfig.ResponseSaveLocation.
2024-09-20 18:09:34 +10:00
perennial b480df0e7f Add configurable response save location
Introduce a new ResponseSaveLocation config option to flexibly store
API responses during development. Move InDevelopment flag to a
dedicated "Development options" section in the config struct.
Update audit package to use the new configurable save location instead
of a hardcoded path.
2024-09-20 16:09:41 +10:00
perennial 316ca993e9 Add inline comments to audit_log.go 2024-09-20 15:16:47 +10:00
iacore 51dad4eb74 move most go files to server/ 2024-09-05 16:08:08 +00:00