diff --git a/src/main/scala/service/WebHookService.scala b/src/main/scala/service/WebHookService.scala index c3f7cd4..cf85ebb 100644 --- a/src/main/scala/service/WebHookService.scala +++ b/src/main/scala/service/WebHookService.scala @@ -37,7 +37,7 @@ import org.apache.http.impl.client.DefaultHttpClient import scala.concurrent._ import ExecutionContext.Implicits.global - + logger.trace("start callWebHook") implicit val formats = Serialization.formats(NoTypeHints) val webHookURLs = getWebHookURLs(owner, repository) @@ -48,6 +48,7 @@ webHookURLs.foreach { webHookUrl => val f = future { + logger.trace("start web hook invocation for %s", webHookUrl) val httpPost = new HttpPost(webHookUrl.url) val params: java.util.List[NameValuePair] = new java.util.ArrayList() @@ -56,6 +57,7 @@ httpClient.execute(httpPost) httpPost.releaseConnection() + logger.trace("end web hook invocation for %s", webHookUrl) } f.onSuccess { case s => logger.debug(s"Success: web hook request to ${webHookUrl.url}") @@ -65,6 +67,7 @@ } } } + logger.trace("end callWebHook") } }