Commit 2e4fcd83 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

removed exclusive lock from mglog writing

parent 144c7333
...@@ -1390,8 +1390,12 @@ class MetaGer ...@@ -1390,8 +1390,12 @@ class MetaGer
$logEntry .= " key=" . $this->apiKey; $logEntry .= " key=" . $this->apiKey;
$logEntry .= " eingabe=" . $this->eingabe; $logEntry .= " eingabe=" . $this->eingabe;
$logEntry = preg_replace("\n+", " ", $logEntry);
$logpath = \App\MetaGer::getMGLogFile(); $logpath = \App\MetaGer::getMGLogFile();
file_put_contents($logpath, $logEntry . PHP_EOL, FILE_APPEND | LOCK_EX); if (file_put_contents($logpath, $logEntry . PHP_EOL, FILE_APPEND) === false) {
Log::error("Konnte Log Zeile nicht schreiben");
}
} catch (\Exception $e) { } catch (\Exception $e) {
return; return;
} }
......
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