@@ -70,17 +70,17 @@ var (
7070 analyzer .SetLogger (logger )
7171 // Loading git repository
7272 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 )
7773 if err != nil {
7874 color .Red .Printf ("error fetching repository `%v`" , err )
7975 logger .WithFields (logging.Fields {
8076 "correlation_id" : util .GetRequestID (ctx ),
8177 "user_id" : util .GetUserID (ctx ),
8278 }).Fatalf ("error fetching repository `%v`" , err )
8379 }
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 )
8484 analyzer .SetRepository (repository )
8585 // Get project informations
8686 info , err = hook .ParseInfo (repository )
@@ -111,6 +111,7 @@ var (
111111 color .Red .Printf ("error parsing hook info %v" , err )
112112 logger .WithFields (logging.Fields {
113113 "correlation_id" : util .GetRequestID (ctx ),
114+ "hook_input" : options .HookInput ,
114115 "user_id" : util .GetUserID (ctx ),
115116 }).Fatal (err )
116117 }
0 commit comments