WebDAV: added logging of deadline

Nightly testing did not resend a PUT when it could (should?)
have because the deadline was exceeded. Added logging to
track down what the chosen deadline is.
This commit is contained in:
Patrick Ohly 2011-08-08 10:36:18 +02:00
parent 7441eb1711
commit f0f2fe5325

View file

@ -474,9 +474,12 @@ int Session::propIterator(void *userdata,
void Session::startOperation(const string &operation, const Timespec &deadline)
{
SE_LOG_DEBUG(NULL, NULL, "starting %s, credentials %s",
SE_LOG_DEBUG(NULL, NULL, "starting %s, credentials %s, %s",
operation.c_str(),
m_settings->getCredentialsOkay() ? "okay" : "unverified");
m_settings->getCredentialsOkay() ? "okay" : "unverified",
deadline ? StringPrintf("deadline in %.1lfs",
(deadline - Timespec::monotonic()).duration()).c_str() :
"no deadline");
// remember current operation attributes
m_operation = operation;