Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
2e4fcd83
Commit
2e4fcd83
authored
Mar 02, 2020
by
Dominik Hebeler
Browse files
removed exclusive lock from mglog writing
parent
144c7333
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
2e4fcd83
...
...
@@ -1390,8 +1390,12 @@ class MetaGer
$logEntry
.
=
" key="
.
$this
->
apiKey
;
$logEntry
.
=
" eingabe="
.
$this
->
eingabe
;
$logEntry
=
preg_replace
(
"
\n
+"
,
" "
,
$logEntry
);
$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
)
{
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment