Watchdog() has been removed, we need to use `\Drupal::logger('seckit')`

Comments

kmoll created an issue. See original summary.

kmoll’s picture

StatusFileSize
new4.12 KB

removed all occurrences of watchdog()

kmoll’s picture

Status: Active » Needs review
badjava’s picture

@kmoll Looks good but I think the arguments should be passed directly to logger in the CSRF attack and not use the t() function.

badjava’s picture

Status: Needs review » Needs work
kmoll’s picture

StatusFileSize
new4.29 KB
new843 bytes

updated patch and created interdiff.

kmoll’s picture

Status: Needs work » Needs review
bart vanhoutte’s picture

I think this can be left out (SecKitEventSubscriber::_seckit_origin)?

$warning = t($message, $args);
bart vanhoutte’s picture

Status: Needs review » Reviewed & tested by the community

Just saw the AccessDeniedException.

Fixed the watchdog missing error on my site. Looks good.

  • badjava committed 2a389bb on 8.x-1.x authored by kmoll
    Issue #2711905 by kmoll: Watchdog has been removed from Drupal 8 -...
badjava’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Thank you Kevin and Bart for fixing this issue.

badjava’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.