diff options
Diffstat (limited to 'java/test/Ice/exceptionsAMD/Server.java')
-rw-r--r-- | java/test/Ice/exceptionsAMD/Server.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/java/test/Ice/exceptionsAMD/Server.java b/java/test/Ice/exceptionsAMD/Server.java index bb087ef372f..be5e6b6f7df 100644 --- a/java/test/Ice/exceptionsAMD/Server.java +++ b/java/test/Ice/exceptionsAMD/Server.java @@ -12,12 +12,6 @@ public class Server private static int run(String[] args, Ice.Communicator communicator) { - // - // For this test, we need a dummy logger, otherwise the - // assertion test will print an error message. - // - communicator.setLogger(new DummyLogger()); - Ice.Properties properties = communicator.getProperties(); // We don't need to disable warnings, because we have a dummy logger. //properties.setProperty("Ice.Warn.Dispatch", "0"); @@ -38,7 +32,14 @@ public class Server try { - communicator = Ice.Util.initialize(args); + // + // For this test, we need a dummy logger, otherwise the + // assertion test will print an error message. + // + Ice.InitializationData initData = new Ice.InitializationData(); + initData.logger = new DummyLogger(); + + communicator = Ice.Util.initialize(args, initData); status = run(args, communicator); } catch(Ice.LocalException ex) |