From 5f228cf7b45e14afd6ac4c2151fd6cabe05c7944 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 11 Sep 2020 10:28:54 +0200 Subject: [PATCH] Fixed log messages --- test/dorkboxTest/network/rmi/multiJVM/TestClient.kt | 6 +++--- test/dorkboxTest/network/rmi/multiJVM/TestServer.kt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt b/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt index b34b1614..f22d3d71 100644 --- a/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt +++ b/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt @@ -74,11 +74,11 @@ object TestClient { val client = Client(config) client.onConnect { connection -> - System.err.println("Starting test for: Client -> Server") + connection.logger.error("Starting test for: Client -> Server") connection.createObject(124123) { _, remoteObject -> RmiCommonTest.runTests(connection, remoteObject, 124123) - client.logger.error("DONE") + connection.logger.error("DONE") // now send this remote object ACROSS the wire to the server (on the server, this is where the IMPLEMENTATION lives) connection.send(remoteObject) @@ -88,7 +88,7 @@ object TestClient { } client.onMessage { connection, test -> - System.err.println("Received test cow from server") + connection.logger.error("Received test cow from server") // this object LIVES on the server. try { diff --git a/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt b/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt index ddc2a07f..c7d9003a 100644 --- a/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt +++ b/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt @@ -46,7 +46,7 @@ object TestServer { val server = Server(configuration) server.onMessage { connection, m -> - System.err.println("Received finish signal for test for: Client -> Server") + connection.logger.error("Received finish signal for test for: Client -> Server") val `object` = m.testCow val id = `object`.id() Assert.assertEquals(124123, id.toLong())