File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/GraphQl/Helper/Query/Logger Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 17
17
use Magento \Framework \App \Response \Http as HttpResponse ;
18
18
use Magento \Framework \GraphQl \Schema ;
19
19
use Magento \GraphQl \Model \Query \Logger \LoggerInterface ;
20
- use Magento \Ui \Block \Logger ;
21
20
22
21
/**
23
22
* Helper class to collect data for logging GraphQl requests
@@ -32,6 +31,7 @@ class LogData
32
31
* @param Schema|null $schema
33
32
* @param HttpResponse|null $response
34
33
* @return array
34
+ * @SuppressWarnings(PHPMD.EmptyCatchBlock)
35
35
*/
36
36
public function getLogData (
37
37
RequestInterface $ request ,
@@ -48,7 +48,9 @@ public function getLogData(
48
48
if ($ schema ) {
49
49
$ logData = array_merge ($ logData , $ this ->gatherQueryInformation ($ schema ));
50
50
}
51
- } catch (\Exception $ exception ) {}
51
+ } catch (\Exception $ exception ) {
52
+ // do nothing
53
+ }
52
54
53
55
if ($ response ) {
54
56
$ logData = array_merge ($ logData , $ this ->gatherResponseInformation ($ response ));
You can’t perform that action at this time.
0 commit comments