Skip to content

Commit

Permalink
Update modules/os2web_audit_entity/os2web_audit_entity.module
Browse files Browse the repository at this point in the history
Co-authored-by: Jeppe Kuhlmann Andersen <[email protected]>
  • Loading branch information
cableman and jekuaitk authored Dec 12, 2024
1 parent 63b87b1 commit daa3fe0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modules/os2web_audit_entity/os2web_audit_entity.module
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,7 @@ function os2web_audit_entity_log(string $message): void {

// Detect user type.
$account = \Drupal::currentUser();
$apiUser = FALSE;
if (os2web_audit_entity_is_api_user($account)) {
$apiUser = TRUE;
}

$metadata['userId'] = $account->getEmail();
$metadata['userType'] = $apiUser ? 'api' : 'web';
$metadata['userType'] = os2web_audit_entity_is_api_user($account) ? 'api' : 'web';
$logger->info('Entity', $message, FALSE, $metadata);
}

0 comments on commit daa3fe0

Please sign in to comment.