Skip to content

Commit

Permalink
Some quietening of camel test output
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlugter committed Aug 5, 2011
1 parent bb3a4d7 commit b2bfe9a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ private[camel] object TypedConsumerPublisher {
*/
def handleConsumerMethodRegistered(event: ConsumerMethodRegistered) {
CamelContextManager.mandatoryContext.addRoutes(new ConsumerMethodRouteBuilder(event))
EventHandler notifyListeners EventHandler.Info(this, "published method %s of %s at endpoint %s" format (event.methodName, event.typedActor, event.endpointUri))
EventHandler.info(this, "published method %s of %s at endpoint %s" format (event.methodName, event.typedActor, event.endpointUri))
}

/**
* Stops the route to the already un-registered typed consumer actor method.
*/
def handleConsumerMethodUnregistered(event: ConsumerMethodUnregistered) {
CamelContextManager.mandatoryContext.stopRoute(event.methodUuid)
EventHandler notifyListeners EventHandler.Info(this, "unpublished method %s of %s from endpoint %s" format (event.methodName, event.typedActor, event.endpointUri))
EventHandler.info(this, "unpublished method %s of %s from endpoint %s" format (event.methodName, event.typedActor, event.endpointUri))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ trait CamelContextLifecycle {
c.start
t.start
_started = true
EventHandler notifyListeners EventHandler.Info(this, "Camel context started")
EventHandler.info(this, "Camel context started")
}
}

Expand All @@ -118,7 +118,7 @@ trait CamelContextLifecycle {
c.stop
_started = false
_initialized = false
EventHandler notifyListeners EventHandler.Info(this, "Camel context stopped")
EventHandler.info(this, "Camel context stopped")
}
}

Expand All @@ -141,7 +141,7 @@ trait CamelContextLifecycle {
this._template = Some(context.createProducerTemplate)

_initialized = true
EventHandler notifyListeners EventHandler.Info(this, "Camel context initialized")
EventHandler.info(this, "Camel context initialized")
}
}

Expand Down
11 changes: 11 additions & 0 deletions akka-camel/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="false" debug="false">
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%4p] [%d{ISO8601}] [%t] %c{1}: %m%n</pattern>
</encoder>
</appender>
<root level="OFF">
<appender-ref ref="stdout"/>
</root>
</configuration>
1 change: 1 addition & 0 deletions config/akka.test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ include "akka-reference.conf"

akka {
event-handlers = ["akka.testkit.TestEventListener"]
event-handler-level = "WARNING"
}

0 comments on commit b2bfe9a

Please sign in to comment.