Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rorschach.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/com/getbootstrap/rorschach/server/Boot.scala')
-rw-r--r--src/main/scala/com/getbootstrap/rorschach/server/Boot.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/scala/com/getbootstrap/rorschach/server/Boot.scala b/src/main/scala/com/getbootstrap/rorschach/server/Boot.scala
index 02d701e..a610ebe 100644
--- a/src/main/scala/com/getbootstrap/rorschach/server/Boot.scala
+++ b/src/main/scala/com/getbootstrap/rorschach/server/Boot.scala
@@ -30,11 +30,23 @@ object Boot extends App {
run(argsPort)
+
+ def squelchInvalidHttpLogging() {
+ import org.slf4j.LoggerFactory
+ import ch.qos.logback.classic.{Logger,Level}
+
+ LoggerFactory.getLogger("spray.can.server.HttpServerConnection").asInstanceOf[Logger].setLevel(Level.ERROR)
+ }
+
def run(port: Option[Int]) {
implicit val system = ActorSystem("on-spray-can")
val settings = Settings(system)
// import actorSystem.dispatcher
+ if (settings.SquelchInvalidHttpLogging) {
+ squelchInvalidHttpLogging()
+ }
+
val commenter = system.actorOf(SmallestMailboxPool(3).props(Props(classOf[GitHubPullRequestCommenter])), "gh-pr-commenter")
val prAuditorPool = system.actorOf(SmallestMailboxPool(5).props(Props(classOf[PullRequestEventHandler], commenter)), "pr-auditor-pool")
val webService = system.actorOf(Props(classOf[RorschachActor], prAuditorPool), "rorschach-service")