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
b3000053
Commit
b3000053
authored
Jul 14, 2022
by
Dominik Hebeler
Browse files
removed logging
parent
6796e994
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
metager/app/Http/Middleware/BrowserVerification.php
View file @
b3000053
...
...
@@ -76,9 +76,8 @@ class BrowserVerification
do
{
$bvData
=
Cache
::
get
(
$mgv
);
if
(
$bvData
!==
null
)
{
if
((
array_key_exists
(
"css_loaded"
,
$bvData
)
&&
$bvData
[
"css_loaded"
]
===
true
)
&&
(
array_key_exists
(
"js_loaded"
,
$bvData
)
&&
$bvData
[
"js_loaded"
]
===
true
)
&&
(
array_key_exists
(
"css_image_loaded"
,
$bvData
)
&&
$bvData
[
"css_image_loaded"
]
===
true
)
if
((
array_key_exists
(
"css_loaded"
,
$bvData
)
&&
$bvData
[
"css_loaded"
]
===
true
)
||
(
array_key_exists
(
"js_loaded"
,
$bvData
)
&&
$bvData
[
"js_loaded"
]
===
true
)
)
{
break
;
}
else
{
...
...
@@ -88,14 +87,6 @@ class BrowserVerification
\
usleep
(
50
*
1000
);
}
while
(
now
()
->
diffInSeconds
(
$start_time
)
<
$wait_time_seconds
);
if
(
$bvData
!==
null
)
{
// ToDo Remove Log
$file_path
=
\
storage_path
(
"logs/metager/bv.csv"
);
$fh
=
fopen
(
$file_path
,
"a"
);
try
{
\
fputcsv
(
$fh
,
[
now
()
->
format
(
"Y-m-d H:i:s"
),
$_SERVER
[
"AGENT"
],
(
array_key_exists
(
"js_loaded"
,
$bvData
)
&&
$bvData
[
"js_loaded"
])
?
"js"
:
"nojs"
,
$request
->
input
(
"eingabe"
,
""
)]);
}
finally
{
fclose
(
$fh
);
}
$search_settings
=
\
app
()
->
make
(
SearchSettings
::
class
);
$search_settings
->
jskey
=
$mgv
;
$search_settings
->
header_printed
=
false
;
...
...
Write
Preview
Supports
Markdown
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