File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ func (a ActionSendHTTP) Perform(ctx Context) error {
50
50
}
51
51
52
52
request := gorequest .New ().
53
+ SetDebug (true ).
53
54
SetLogger (newOmLogger (ctx )).
54
55
CustomMethod (a .Method , urlStr )
55
56
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func (om *OpenMock) startHTTP() {
42
42
HTTPContext : ec ,
43
43
HTTPHeader : ec .Request ().Header ,
44
44
HTTPBody : string (body ),
45
- HTTPPath : ec .Path (),
45
+ HTTPPath : ec .Request (). URL . String (),
46
46
HTTPQueryString : ec .QueryString (),
47
47
om : om ,
48
48
}
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package openmock
2
2
3
3
import (
4
4
"log"
5
- "os"
6
5
7
6
"github.com/caarlos0/env"
8
7
"github.com/goombaio/orderedmap"
@@ -82,8 +81,7 @@ func (om *OpenMock) SetupLogrus() {
82
81
logrus .WithField ("err" , err ).Fatalf ("failed to set logrus level:%s" , om .LogLevel )
83
82
}
84
83
logrus .SetLevel (l )
85
- logrus .SetOutput (os .Stdout )
86
- logrus .SetReportCaller (true )
84
+ logrus .SetFormatter (& logrus.JSONFormatter {})
87
85
}
88
86
89
87
func (om * OpenMock ) SetupRepo () {
@@ -101,7 +99,6 @@ func (om *OpenMock) SetupRepo() {
101
99
func (om * OpenMock ) Start () {
102
100
om .SetupLogrus ()
103
101
om .SetupRepo ()
104
-
105
102
om .SetRedis ()
106
103
107
104
err := om .Load ()
You can’t perform that action at this time.
0 commit comments