diff options
author | Ryan D. Brooks | 2011-08-02 20:05:44 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2011-08-02 20:05:44 +0000 |
commit | 5618fe9dd7eb79ae3118d1e874aace2ce208bec8 (patch) | |
tree | bc6fce7bf67baca7c3ecb0279133657eb90eb66b /plugins/org.eclipse.osee.ote.client.msg | |
parent | 38f5425454f60d085a2ad10b340b63a5c1562378 (diff) | |
download | org.eclipse.osee-5618fe9dd7eb79ae3118d1e874aace2ce208bec8.tar.gz org.eclipse.osee-5618fe9dd7eb79ae3118d1e874aace2ce208bec8.tar.xz org.eclipse.osee-5618fe9dd7eb79ae3118d1e874aace2ce208bec8.zip |
refactor: Replace OseeLog.log() calls that use String.format with OseeLog.logf
Diffstat (limited to 'plugins/org.eclipse.osee.ote.client.msg')
2 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.ote.client.msg/src/org/eclipse/osee/ote/client/msg/core/internal/ChannelProcessor.java b/plugins/org.eclipse.osee.ote.client.msg/src/org/eclipse/osee/ote/client/msg/core/internal/ChannelProcessor.java index 4fd0b1b6e6e..1bba6ae5810 100644 --- a/plugins/org.eclipse.osee.ote.client.msg/src/org/eclipse/osee/ote/client/msg/core/internal/ChannelProcessor.java +++ b/plugins/org.eclipse.osee.ote.client.msg/src/org/eclipse/osee/ote/client/msg/core/internal/ChannelProcessor.java @@ -17,7 +17,6 @@ import java.util.Arrays; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ExecutorService; import java.util.logging.Level; - import org.eclipse.osee.framework.logging.OseeLog; import org.eclipse.osee.ote.client.msg.core.db.AbstractMessageDataBase; import org.eclipse.osee.ote.client.msg.core.db.MessageInstance; @@ -110,9 +109,9 @@ final public class ChannelProcessor { byte[] data = msgData.getMem().getData(); int remaining = buffer.remaining(); if (data.length < remaining) { - OseeLog.log(Activator.class, Level.WARNING, String.format( + OseeLog.logf(Activator.class, Level.WARNING, "Message [%s] changed it's backing data size from [%d] to [%d].", instance.getMessage().getName(), - data.length, remaining)); + data.length, remaining); data = new byte[remaining]; buffer.get(data, 0, remaining); msgData.setNewBackingBuffer(data); diff --git a/plugins/org.eclipse.osee.ote.client.msg/src/org/eclipse/osee/ote/client/msg/core/internal/MessageSubscriptionService.java b/plugins/org.eclipse.osee.ote.client.msg/src/org/eclipse/osee/ote/client/msg/core/internal/MessageSubscriptionService.java index ef8f6dfb382..c3450b45b52 100644 --- a/plugins/org.eclipse.osee.ote.client.msg/src/org/eclipse/osee/ote/client/msg/core/internal/MessageSubscriptionService.java +++ b/plugins/org.eclipse.osee.ote.client.msg/src/org/eclipse/osee/ote/client/msg/core/internal/MessageSubscriptionService.java @@ -240,9 +240,9 @@ public class MessageSubscriptionService implements IOteMessageService, IMessageD @Override public InetSocketAddress getAddressByType(String messageName, DataType dataType) throws RemoteException { final DatagramChannel channel = dispatcher.getChannel(dataType); - OseeLog.log(Activator.class, Level.INFO, String.format( + OseeLog.logf(Activator.class, Level.INFO, "callback from remote msg manager: msg=%s, type=%s, ip=%s:%d\n", messageName, dataType.name(), - localAddress.toString(), channel.socket().getLocalPort())); + localAddress.toString(), channel.socket().getLocalPort()); return new InetSocketAddress(localAddress, channel.socket().getLocalPort()); } |