Commit e56bf618 authored by Simon Pastor's avatar Simon Pastor
Browse files

http log error and rnis default redis server

parent 8b47f4f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ import (
)

const moduleName string = "meep-rnis-sbi"
const redisAddr string = "localhost:30380" //"meep-redis-master.default.svc.cluster.local:6379"
const redisAddr string = "meep-redis-master.default.svc.cluster.local:6379"

type RnisSbi struct {
	sandboxName          string
+4 −0
Original line number Diff line number Diff line
@@ -84,8 +84,12 @@ func LogTx(url string, method string, body string, resp *http.Response, startTim
			responseBodyString = string(responseData)
		}
		responseCode = strconv.Itoa(resp.StatusCode)
	} else {
		responseCode = strconv.Itoa(http.StatusInternalServerError)
	}



	var metric ms.HttpMetric
	metric.LoggerName = logComponent
	metric.Direction = DirectionTX