Removed unnecessary calls to syslog.
This commit is contained in:
@@ -692,14 +692,11 @@ class StreamWrapper {
|
|||||||
|
|
||||||
// Skip debug streams.
|
// Skip debug streams.
|
||||||
if ($this->isNeverDirty) {
|
if ($this->isNeverDirty) {
|
||||||
syslog(LOG_WARNING, "Never dirty. Skipping write.");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stream is dirty and needs a write.
|
// Stream is dirty and needs a write.
|
||||||
if ($this->isDirty) {
|
if ($this->isDirty) {
|
||||||
syslog(LOG_WARNING, "Marked dirty. Writing object.");
|
|
||||||
|
|
||||||
$position = ftell($this->objStream);
|
$position = ftell($this->objStream);
|
||||||
|
|
||||||
rewind($this->objStream);
|
rewind($this->objStream);
|
||||||
@@ -708,9 +705,6 @@ class StreamWrapper {
|
|||||||
fseek($this->objStream, SEEK_SET, $position);
|
fseek($this->objStream, SEEK_SET, $position);
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
syslog(LOG_WARNING, "Not dirty. Skipping write.");
|
|
||||||
}
|
|
||||||
$this->isDirty = FALSE;
|
$this->isDirty = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user