Permalink
Browse files

get rid of debugging output

  • Loading branch information...
1 parent e1bb77c commit 7bf5e8accf969d6c118efb07173a82f48671a36d @marmbrus marmbrus committed Oct 2, 2011
Showing with 1 addition and 6 deletions.
  1. +0 −1 avro/src/main/scala/runtime/package.scala
  2. +1 −5 comm/src/main/scala/ServiceRegistry.scala
@@ -32,7 +32,6 @@ package object runtime {
// yes, this is disturbing
val implClassName = clz.getName + "$class"
val unionClz = Class.forName(implClassName)
- println("found class: " + unionClz)
val schema = unionClz.getMethod("getSchema", clz).invoke(null, null).asInstanceOf[Schema]
TypedSchema[C](schema, unionClz.getClassLoader)
} else {
@@ -87,11 +87,7 @@ class ServiceRegistry[MessageType <: IndexedRecord](implicit schema: TypedSchema
"scads.comm.handlerClass",
classOf[netty.DefaultNettyChannelManager[_, _]].getName)
logger.info("Using handler impl class: %s".format(clzName))
-
- logger.error("Using classloader %s", schema.classLoader)
-// val cl = schema.classLoader.loadClass("edu.berkeley.cs.scads.comm.test.messages.package$TestMessages$class")
-// val cl2 = schema.classLoader.loadClass("edu.berkeley.cs.scads.comm.test.messages.TestMsg1")
- //logger.error("Found class %s", cl)
+ logger.debug("ServiceRegistry using classloader %s", schema.classLoader)
val clz = Class.forName(clzName).asInstanceOf[Class[AvroChannelManager[MessageEnvelope, MessageEnvelope]]]
val ctor = clz.getConstructor(classOf[Function3[_, _, _, _]], classOf[ClassLoader], classOf[TypedSchema[_]], classOf[TypedSchema[_]])

0 comments on commit 7bf5e8a

Please sign in to comment.