adds request log to txt/json endpoints removes un-necessary debug log
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user