mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
[dstore] trivial - better tracing for upload
This commit is contained in:
parent
1147df5c4f
commit
831ed5d4e6
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue