Skip to content

Commit ba7b81a

Browse files
committed
removing error_log in favour of E_USER_WARNING
1 parent 45fde39 commit ba7b81a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Flow/Mongo/MongoFile.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function saveChunk()
9898

9999
return true;
100100
} catch (\Exception $e) {
101-
error_log("Could not store chunk: " . $e->getMessage() . "\n" . $e->getTraceAsString());
101+
trigger_error("Could not store chunk: " . $e->getMessage() . "\n" . $e->getTraceAsString(), E_USER_WARNING);
102102
try {
103103
if (isset($chunkQuery)) {
104104
$this->config->getGridFs()->chunks->remove($chunkQuery);
@@ -182,4 +182,4 @@ protected function getGridFsFileQuery()
182182
'length' => intval($this->request->getTotalSize())
183183
];
184184
}
185-
}
185+
}

0 commit comments

Comments
 (0)