From 831ed5d4e6ffb67682e05c3912c6bcec0a39b9c3 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 1 Apr 2009 17:48:59 +0000 Subject: [PATCH] [dstore] trivial - better tracing for upload --- .../eclipse/dstore/core/model/ByteStreamHandler.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java index e1a0e341566..061ceefcdfb 100644 --- a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java +++ b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/model/ByteStreamHandler.java @@ -73,6 +73,7 @@ public class ByteStreamHandler implements IByteStreamHandler if (fileName != null) { + _dataStore.trace("Receiving Bytes for " + fileName); //$NON-NLS-1$ try { // need to create directories as well @@ -109,7 +110,7 @@ public class ByteStreamHandler implements IByteStreamHandler } catch (IOException e) { - System.out.println(e); + _dataStore.trace(e); if (status == null) return; status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED); @@ -118,7 +119,7 @@ public class ByteStreamHandler implements IByteStreamHandler } catch (Exception e) { - System.out.println(e); + _dataStore.trace(e); if (status == null) return; status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED); @@ -145,6 +146,7 @@ public class ByteStreamHandler implements IByteStreamHandler if (fileName != null) { + _dataStore.trace("Receiving Appended Bytes for " + fileName); //$NON-NLS-1$ try { // need to create directories as well @@ -192,7 +194,7 @@ public class ByteStreamHandler implements IByteStreamHandler } catch (Exception e) { - e.printStackTrace(); + _dataStore.trace(e); } outStream.close(); @@ -205,7 +207,7 @@ public class ByteStreamHandler implements IByteStreamHandler } catch (IOException e) { - System.out.println(e); + _dataStore.trace(e); if (status == null) return; status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED);