Skip to content

Commit

Permalink
Increase severity of message if bytes were missed.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja authored and abh3 committed Jun 30, 2016
1 parent a9756e1 commit 59d5d8f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/XrdFileCache/XrdFileCacheIOEntireFile.cc
Expand Up @@ -96,14 +96,16 @@ int IOEntireFile::Read (char *buff, long long off, int size)
// XXXX MT: the logick here is strange, see versions in
// alja/pfc-async-prefetch and in master.
// Also, what if retval == 0?

if ((size > 0))
clLog()->Debug(XrdCl::AppMsg, "IOEntireFile::Read() missed %d bytes %s", size, m_io.Path());
}
}
if (retval < 0)
{
clLog()->Error(XrdCl::AppMsg, "IOEntireFile::Read(), origin bytes read %d %s", retval, m_io.Path());
}
else if ((size > 0))
{
clLog()->Error(XrdCl::AppMsg, "IOEntireFile::Read() missed %d bytes %s", size, m_io.Path());
bytes_read += retval;
}

return (retval < 0) ? retval : bytes_read;
}
Expand Down

0 comments on commit 59d5d8f

Please sign in to comment.