We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45fde39 commit ba7b81aCopy full SHA for ba7b81a
src/Flow/Mongo/MongoFile.php
@@ -98,7 +98,7 @@ public function saveChunk()
98
99
return true;
100
} catch (\Exception $e) {
101
- error_log("Could not store chunk: " . $e->getMessage() . "\n" . $e->getTraceAsString());
+ trigger_error("Could not store chunk: " . $e->getMessage() . "\n" . $e->getTraceAsString(), E_USER_WARNING);
102
try {
103
if (isset($chunkQuery)) {
104
$this->config->getGridFs()->chunks->remove($chunkQuery);
@@ -182,4 +182,4 @@ protected function getGridFsFileQuery()
182
'length' => intval($this->request->getTotalSize())
183
];
184
}
185
-}
+}
0 commit comments