Meta issue: #2205673: [meta] Remove all @deprecated functions marked "remove before 8.0"
Now that this function has 0 usage we can remove it
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | drupal-watchdog-2324791-12.patch | 8.62 KB | ParisLiakos |
| #8 | drupal-watchdog-2267545.patch | 9.23 KB | ParisLiakos |
| #6 | Drupal-remove_watchdog-2324791-5.patch | 4.79 KB | Michael Hodge Jr |
| #6 | interdiff-2324791-1-5.txt | 2.13 KB | Michael Hodge Jr |
| #2 | Drupal-remove_watchdog-2324791-1.patch | 6.92 KB | Michael Hodge Jr |
Comments
Comment #1
Michael Hodge Jr commentedI'm going to try to take a stab at this one.
Comment #2
Michael Hodge Jr commentedHere is my first attempt. There were a few instances in the code where watchdog() was referred to in the comments, but I didn't change those as I wasn't sure if I should then reference \Drupal::logger or how that should be worded. An example is in core/includes/bootstrap.inc around line 785.
Comment #4
jeroentI think we should keep these references in comments but instead of watchdog(), something like \Drupal::logger($channel)->log($severity, $message, $context) ?
Comment #5
jeroentComment #6
Michael Hodge Jr commentedI think I removed a little too much in the first patch, which is why the testing failed. I'm undoing my changes to the test factories.
Comment #7
Michael Hodge Jr commentedComment #8
ParisLiakos commentedhmm, i forgot to upload the patch..i think its more complete than the already posted ones
Comment #9
dawehnerwell, should we not mention calling a logger? i think it doesn't matter though because that UnitTestBase will be removed at some point anyway. For phpunit tests its just clear that there is no database available.
Comment #12
ParisLiakos commented#2324789: Remove UnitTestBase is in :D so that chunk is now vanished
greping for 'watchdog(' returns 0 results
Comment #13
legolasboThe patch looks good to me.
Comment #14
alexpottWhat is the plan for
watchdog_exception()? Also the CR https://www.drupal.org/node/2270941 needs updating.Committed ebdca18 and pushed to 8.0.x. Thanks!
Comment #16
ParisLiakos commentedafter some thinking about it, i opened #2351099: watchdog_exception() hides the exception from logger implementations