Browse Source

log tcp error

Paul 5 years ago
parent
commit
7b9f9f7a53
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      request/tr/tr.go

+ 5
- 0
request/tr/tr.go View File

1
 package tr
1
 package tr
2
 
2
 
3
 import (
3
 import (
4
+	"github.com/sirupsen/logrus"
4
 	"github.com/wpajqz/linker"
5
 	"github.com/wpajqz/linker"
5
 )
6
 )
6
 
7
 
49
 		status = v.Status
50
 		status = v.Status
50
 	}
51
 	}
51
 
52
 
53
+	if status == linker.StatusInternalServerError {
54
+		logrus.Error(err)
55
+	}
56
+
52
 	ctx.Error(status, err.Error())
57
 	ctx.Error(status, err.Error())
53
 
58
 
54
 	return true
59
 	return true