1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 20:45:22 +02:00

[dstore] trivial - better tracing for upload

This commit is contained in:
David McKnight 2009-04-01 17:48:59 +00:00
parent 1147df5c4f
commit 831ed5d4e6

View file

@ -73,6 +73,7 @@ public class ByteStreamHandler implements IByteStreamHandler
if (fileName != null) if (fileName != null)
{ {
_dataStore.trace("Receiving Bytes for " + fileName); //$NON-NLS-1$
try try
{ {
// need to create directories as well // need to create directories as well
@ -109,7 +110,7 @@ public class ByteStreamHandler implements IByteStreamHandler
} }
catch (IOException e) catch (IOException e)
{ {
System.out.println(e); _dataStore.trace(e);
if (status == null) if (status == null)
return; return;
status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED); status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED);
@ -118,7 +119,7 @@ public class ByteStreamHandler implements IByteStreamHandler
} }
catch (Exception e) catch (Exception e)
{ {
System.out.println(e); _dataStore.trace(e);
if (status == null) if (status == null)
return; return;
status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED); status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED);
@ -145,6 +146,7 @@ public class ByteStreamHandler implements IByteStreamHandler
if (fileName != null) if (fileName != null)
{ {
_dataStore.trace("Receiving Appended Bytes for " + fileName); //$NON-NLS-1$
try try
{ {
// need to create directories as well // need to create directories as well
@ -192,7 +194,7 @@ public class ByteStreamHandler implements IByteStreamHandler
} }
catch (Exception e) catch (Exception e)
{ {
e.printStackTrace(); _dataStore.trace(e);
} }
outStream.close(); outStream.close();
@ -205,7 +207,7 @@ public class ByteStreamHandler implements IByteStreamHandler
} }
catch (IOException e) catch (IOException e)
{ {
System.out.println(e); _dataStore.trace(e);
if (status == null) if (status == null)
return; return;
status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED); status.setAttribute(DE.A_VALUE, FILEMSG_REMOTE_SAVE_FAILED);