@@ -70,17 +70,17 @@ var (
70
70
analyzer .SetLogger (logger )
71
71
// Loading git repository
72
72
repository , err := util .LoadRepository (ctx , options )
73
- logger .WithFields (logging.Fields {
74
- "correlation_id" : util .GetRequestID (ctx ),
75
- "user_id" : util .GetUserID (ctx ),
76
- }).Debugf ("repository `%v` successfully fetched" , options .URI )
77
73
if err != nil {
78
74
color .Red .Printf ("error fetching repository `%v`" , err )
79
75
logger .WithFields (logging.Fields {
80
76
"correlation_id" : util .GetRequestID (ctx ),
81
77
"user_id" : util .GetUserID (ctx ),
82
78
}).Fatalf ("error fetching repository `%v`" , err )
83
79
}
80
+ logger .WithFields (logging.Fields {
81
+ "correlation_id" : util .GetRequestID (ctx ),
82
+ "user_id" : util .GetUserID (ctx ),
83
+ }).Debugf ("repository `%v` successfully fetched" , options .URI )
84
84
analyzer .SetRepository (repository )
85
85
// Get project informations
86
86
info , err = hook .ParseInfo (repository )
@@ -111,6 +111,7 @@ var (
111
111
color .Red .Printf ("error parsing hook info %v" , err )
112
112
logger .WithFields (logging.Fields {
113
113
"correlation_id" : util .GetRequestID (ctx ),
114
+ "hook_input" : options .HookInput ,
114
115
"user_id" : util .GetUserID (ctx ),
115
116
}).Fatal (err )
116
117
}
0 commit comments