Commit fde739ab authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-832 Log GlobalWindow size override only once.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 5e0e469d
...@@ -70,6 +70,7 @@ class SyncCollections implements Iterator { ...@@ -70,6 +70,7 @@ class SyncCollections implements Iterator {
private $lastSyncTime; private $lastSyncTime;
private $waitingTime = 0; private $waitingTime = 0;
private $loggedGlobalWindowSizeOverwrite = false;
/** /**
...@@ -368,7 +369,10 @@ class SyncCollections implements Iterator { ...@@ -368,7 +369,10 @@ class SyncCollections implements Iterator {
} }
if (defined("SYNC_MAX_ITEMS") && SYNC_MAX_ITEMS < $globalWindowSize) { if (defined("SYNC_MAX_ITEMS") && SYNC_MAX_ITEMS < $globalWindowSize) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->GetGlobalWindowSize() overwriting requested global window size of %d by %d forced in configuration.", $globalWindowSize, SYNC_MAX_ITEMS)); if (!$this->loggedGlobalWindowSizeOverwrite) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("SyncCollections->GetGlobalWindowSize() overwriting requested global window size of %d by %d forced in configuration.", $globalWindowSize, SYNC_MAX_ITEMS));
$this->loggedGlobalWindowSizeOverwrite = true;
}
$globalWindowSize = SYNC_MAX_ITEMS; $globalWindowSize = SYNC_MAX_ITEMS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment