improved logging for creditcall payment processing
This commit is contained in:
@@ -297,11 +297,11 @@ func buildSuccessURL(result map[string]string) string {
|
||||
|
||||
func BuildFailureURL(msgType, description string) string {
|
||||
q := url.Values{}
|
||||
if msgType == "" {
|
||||
msgType = ResultError
|
||||
if msgType != "" {
|
||||
description = fmt.Sprintf("Transaction %s", strings.ToLower(msgType))
|
||||
}
|
||||
if description == "" {
|
||||
description = "Transaction failed"
|
||||
if description != "" {
|
||||
msgType = ResultError
|
||||
}
|
||||
|
||||
log.WithFields(log.Fields{LogFieldError: msgType, LogFieldDescription: description}).
|
||||
|
||||
Reference in New Issue
Block a user