Commit 49b90a93 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-739 Use sprintf() in log message.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 8895179b
...@@ -219,7 +219,6 @@ ...@@ -219,7 +219,6 @@
// NOTE: THIS IS AN EXPERIMENTAL FEATURE WHICH COULD PREVENT YOUR MOBILES FROM SYNCHRONIZING. // NOTE: THIS IS AN EXPERIMENTAL FEATURE WHICH COULD PREVENT YOUR MOBILES FROM SYNCHRONIZING.
define('USE_PARTIAL_FOLDERSYNC', false); define('USE_PARTIAL_FOLDERSYNC', false);
// The minimum accepted time in second that a ping command should last. // The minimum accepted time in second that a ping command should last.
// It is strongly advised to keep this config to false. Some device // It is strongly advised to keep this config to false. Some device
// might not be able to send a higher value than the one specificied here and thus // might not be able to send a higher value than the one specificied here and thus
......
...@@ -156,6 +156,7 @@ class Ping extends RequestProcessor { ...@@ -156,6 +156,7 @@ class Ping extends RequestProcessor {
if(!$this->lifetimeBetweenBound($sc->GetLifetime())){ if(!$this->lifetimeBetweenBound($sc->GetLifetime())){
$pingstatus = SYNC_PINGSTATUS_HBOUTOFRANGE; $pingstatus = SYNC_PINGSTATUS_HBOUTOFRANGE;
ZLog::Write(LOGLEVEL_DEBUG, sprintf("HandlePing(): ping lifetime not between bound (higher bound:'%d' lower bound:'%d' current lifetime:'%d'. Returning SYNC_PINGSTATUS_HBOUTOFRANGE.", PING_HIGHER_BOUND_LIFETIME, PING_LOWER_BOUND_LIFETIME, $sc->GetLifetime()));
} }
// save changed data // save changed data
foreach ($sc as $folderid => $spa) foreach ($sc as $folderid => $spa)
...@@ -170,7 +171,7 @@ class Ping extends RequestProcessor { ...@@ -170,7 +171,7 @@ class Ping extends RequestProcessor {
} }
elseif(!$this->lifetimeBetweenBound($sc->GetLifetime())){ elseif(!$this->lifetimeBetweenBound($sc->GetLifetime())){
$pingstatus = SYNC_PINGSTATUS_FAILINGPARAMS; $pingstatus = SYNC_PINGSTATUS_FAILINGPARAMS;
ZLog::Write(LOGLEVEL_DEBUG, "HandlePing(): ping lifetime not between bound (higher bound:`".PING_HIGHER_BOUND_LIFETIME."` lower bound:`".PING_LOWER_BOUND_LIFETIME."` current lifetime:`".$sc->GetLifetime()."`. Returning SYNC_PINGSTATUS_FAILINGPARAMS."); ZLog::Write(LOGLEVEL_DEBUG, sprintf("HandlePing(): ping lifetime not between bound (higher bound:'%d' lower bound:'%d' current lifetime:'%d'. Returning SYNC_PINGSTATUS_FAILINGPARAMS.", PING_HIGHER_BOUND_LIFETIME, PING_LOWER_BOUND_LIFETIME, $sc->GetLifetime()));
} }
} }
......
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