Adding warning logging for erronous settings

This commit is contained in:
Viktor Klang 2012-05-30 14:43:18 +02:00
parent 6c1ca7fcdb
commit d42109ff5f

View file

@ -582,6 +582,8 @@ private[akka] class ActorCell(
}
} else if (!watcheeSelf && watcherSelf) {
watch(watchee)
} else {
system.eventStream.publish(Warning(self.path.toString, clazz(actor), "BUG: illegal Watch(%s,%s) for %s".format(watchee, watcher, self)))
}
}
@ -596,6 +598,8 @@ private[akka] class ActorCell(
}
} else if (!watcheeSelf && watcherSelf) {
unwatch(watchee)
} else {
system.eventStream.publish(Warning(self.path.toString, clazz(actor), "BUG: illegal Unwatch(%s,%s) for %s".format(watchee, watcher, self)))
}
}