Skip to content

Commit 792ea7e

Browse files
committed
Do not log the seed query.
1 parent b47ec9f commit 792ea7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/wpgraphql-logging/src/Logger/LoggingHelper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ protected function is_logging_enabled( array $config, ?string $query_string = nu
2828
$is_enabled = false;
2929
}
3030

31+
// Do not log the seedQuery for Faust.js
32+
if ( $is_enabled && ( 'query GetSeedNode' === trim( $query_string ) ) ) {
33+
$is_enabled = false;
34+
}
35+
3136
// Check if the current user is an admin if that option is enabled.
3237
if ( $is_enabled && ( (bool) ( $config[ Basic_Configuration_Tab::ADMIN_USER_LOGGING ] ?? false ) ) ) {
3338
if ( ! current_user_can( 'manage_options' ) ) {

0 commit comments

Comments
 (0)