adds request log to txt/json endpoints removes un-necessary debug log

This commit is contained in:
2024-01-25 07:08:36 -06:00
parent 4e03fcda83
commit 33cb4defd2
3 changed files with 7 additions and 2 deletions

View File

@@ -52,8 +52,6 @@ func (c NsUpdateStruct) UpdateTXT(record, recordType, value string) error {
}
oldTXT := strings.TrimLeft(strings.TrimRight(stdout.String(), "\n\""), "\"")
config.Cfg.Log.Debug("existing record", "record", strings.ReplaceAll(oldTXT, `" "`, ``))
config.Cfg.Log.Debug("new record", "record", strings.ReplaceAll(value, `" "`, ``))
if strings.ReplaceAll(oldTXT, `" "`, ``) != strings.ReplaceAll(value, `" "`, ``) {
config.Cfg.Log.Debug("deleting record", "record", record)