Fix message on agents logs

This commit is contained in:
gezimbll
2023-06-01 08:55:01 -04:00
committed by Dan Christian Bogos
parent 6c16ff320f
commit a664b31df0

View File

@@ -192,13 +192,13 @@ func processRequest(reqProcessor *config.RequestProcessor, agReq *AgentRequest,
}
if reqProcessor.Flags.Has(utils.MetaLog) {
utils.Logger.Info(
fmt.Sprintf("<%s> LOG, Diameter reply: %s",
agentName, agReq.Reply))
fmt.Sprintf("<%s> LOG, %s reply: %s",
agentName, agentName[:len(agentName)-5], agReq.Reply))
}
if reqType == utils.MetaDryRun {
utils.Logger.Info(
fmt.Sprintf("<%s> DRY_RUN, Diameter reply: %s",
agentName, agReq.Reply))
fmt.Sprintf("<%s> DRY_RUN, %s reply: %s",
agentName, agentName[:len(agentName)-5], agReq.Reply))
}
return true, nil
}