From c03a5da6709a57c0456ca9d83158fe839ab7a3c1 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Wed, 9 Dec 2020 11:19:30 +0100 Subject: [PATCH] Don't warn if everything is fine --- src/libsync/discoveryphase.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index 63640cab6..c8b522dcf 100644 --- a/src/libsync/discoveryphase.cpp +++ b/src/libsync/discoveryphase.cpp @@ -391,9 +391,7 @@ static void propertyMapToRemoteInfo(const QMap &map, RemoteInf result.isDirectory = value.contains(QLatin1String("collection")); } else if (property == QLatin1String("getlastmodified")) { const auto date = QDateTime::fromString(value, Qt::RFC2822Date); - if (date.isValid()) { - qCCritical(lcDiscovery) << "Failed to parse getlastmodified:" << value; - } + Q_ASSERT(date.isValid()); result.modtime = date.toTime_t(); } else if (property == QLatin1String("getcontentlength")) { // See #4573, sometimes negative size values are returned -- 2.39.5