@@ -88,9 +88,9 @@ func parseWebhookRequest(req *http.Request) (*Webhook, string, error) {
8888func processWebhook (c Connector , conf executeConfiguration ) {
8989 err := ExecuteScript (c , conf )
9090 if err != nil {
91- fmt .Printf ("%s Error %s" , time .Now ().Format (time .RFC3339 ), err )
91+ fmt .Printf ("%s Error %s\n " , time .Now ().Format (time .RFC3339 ), err )
9292 }
93- fmt .Printf ("%s Success" , time .Now ().Format (time .RFC3339 ))
93+ fmt .Printf ("%s Success\n " , time .Now ().Format (time .RFC3339 ))
9494}
9595
9696// WebhookHandler handles a HTTP POST request containing the webhook payload in its body
@@ -99,7 +99,7 @@ func (a *API) WebhookHandler(w http.ResponseWriter, req *http.Request) {
9999 if ! strings .EqualFold (req .Method , "POST" ) {
100100 w .WriteHeader (http .StatusMethodNotAllowed )
101101 fmt .Fprint (w , "Error 405 - Method not allowed: invalid method: " , req .Method )
102- fmt .Printf ("%s Error 405 - Method not allowed: invalid method: %s" , time .Now ().Format (time .RFC3339 ), req .Method )
102+ fmt .Printf ("%s Error 405 - Method not allowed: invalid method: %s\n " , time .Now ().Format (time .RFC3339 ), req .Method )
103103 return
104104 }
105105
@@ -108,7 +108,7 @@ func (a *API) WebhookHandler(w http.ResponseWriter, req *http.Request) {
108108 if err != nil {
109109 w .WriteHeader (http .StatusNotFound )
110110 fmt .Fprint (w , "Error 404 - Not found: " , err )
111- fmt .Printf ("%s Error %s" , time .Now ().Format (time .RFC3339 ), err )
111+ fmt .Printf ("%s Error %s\n " , time .Now ().Format (time .RFC3339 ), err )
112112 return
113113 }
114114
@@ -117,7 +117,7 @@ func (a *API) WebhookHandler(w http.ResponseWriter, req *http.Request) {
117117 if err != nil {
118118 w .WriteHeader (http .StatusNotFound )
119119 fmt .Fprint (w , "Error 404 - Not found: " , err )
120- fmt .Printf ("%s Error %s" , time .Now ().Format (time .RFC3339 ), err )
120+ fmt .Printf ("%s Error %s\n " , time .Now ().Format (time .RFC3339 ), err )
121121 return
122122 }
123123
@@ -127,7 +127,7 @@ func (a *API) WebhookHandler(w http.ResponseWriter, req *http.Request) {
127127 if err != nil {
128128 w .WriteHeader (http .StatusNotFound )
129129 fmt .Fprint (w , "Error 404 - Not found: " , err )
130- fmt .Printf ("%s Error %s" , time .Now ().Format (time .RFC3339 ), err )
130+ fmt .Printf ("%s Error %s\n " , time .Now ().Format (time .RFC3339 ), err )
131131 return
132132 }
133133
@@ -137,7 +137,7 @@ func (a *API) WebhookHandler(w http.ResponseWriter, req *http.Request) {
137137 if err != nil {
138138 w .WriteHeader (http .StatusNotFound )
139139 fmt .Fprint (w , "Error 404 - Not found: " , err )
140- fmt .Printf ("%s Error %s" , time .Now ().Format (time .RFC3339 ), err )
140+ fmt .Printf ("%s Error %s\n " , time .Now ().Format (time .RFC3339 ), err )
141141 return
142142 }
143143
@@ -146,7 +146,7 @@ func (a *API) WebhookHandler(w http.ResponseWriter, req *http.Request) {
146146 if err != nil {
147147 w .WriteHeader (http .StatusNotFound )
148148 fmt .Fprint (w , "Error 404 - Not found: " , err )
149- fmt .Printf ("%s Error %s" , time .Now ().Format (time .RFC3339 ), err )
149+ fmt .Printf ("%s Error %s\n " , time .Now ().Format (time .RFC3339 ), err )
150150 return
151151 }
152152
@@ -178,6 +178,6 @@ func (a *API) WebhookHandler(w http.ResponseWriter, req *http.Request) {
178178 // Succes
179179 w .WriteHeader (http .StatusOK )
180180 fmt .Fprint (w , "Payload delivered successfully" )
181- fmt .Printf ("%s Payload delivered successfully" , time .Now ().Format (time .RFC3339 ))
181+ fmt .Printf ("%s Payload delivered successfully\n " , time .Now ().Format (time .RFC3339 ))
182182 return
183183}
0 commit comments