Commit feaf229e authored by tyl-ubuntu's avatar tyl-ubuntu
Browse files

fix Psm bug

parent 345cf5ca
......@@ -23,7 +23,7 @@ todo:
*/
type mylog struct {
psm string
Psm string
}
var (
......@@ -37,7 +37,7 @@ func createMylog() {
func Init(psm string) {
once.Do(createMylog)
(*mylogClient).psm = psm
(*mylogClient).Psm = psm
}
func LogContent(c *gin.Context, psm, others string) string {
......@@ -113,7 +113,7 @@ func ErrorMetric(logid, msg string) {
if ok {
msg = file + ":" + strconv.Itoa(line) + ": " + msg
}
InsertDoc(index, logid, mylogClient.psm, "[Error] "+msg)
InsertDoc(index, logid, mylogClient.Psm, "[Error] "+msg)
}
func Metric(logid, psm, others string, c *gin.Context) {
......@@ -144,7 +144,7 @@ func RpcMetric(logid string, variables ...string) {
for _, v := range variables {
content = content + v + "; "
}
InsertDoc(index, logid, mylogClient.psm, content)
InsertDoc(index, logid, mylogClient.Psm, content)
}
func LocationMetric(province string) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment