Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
watchdog.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 May 2014 at 18:44 UTC
Updated:
3 Sep 2014 at 15:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettHere's FormValidator. I just *really* wanted those damn watchdog hacks gone :)
Comment #2
ParisLiakos commentedthis is probably too big to be in a single issue...maybe we split it to 2/3 parts..but anyway, lets have it green first
Comment #4
ParisLiakos commentedreroll
Comment #6
ParisLiakos commentedlets try again
Comment #8
ParisLiakos commentedone more
Comment #10
ParisLiakos commentedComment #11
ParisLiakos commented#1289536: Switch Watchdog to a PSR-3 logging framework was reverted
Comment #12
ParisLiakos commentedOk, i splitted this to 3 issues.
This one
One for procedural code: #2272467: Remove usages of watchdog() from procedural code
One for forms, controllers and plugins: #2272481: Remove usages of watchdog() from forms, plugins and controllers
Comment #14
ParisLiakos commentedComment #16
ParisLiakos commentedwe cant really inject a logger in the
module_handlerbecause during install/uninstall container gets rebuilt and module handler ends up to have an outdated instance injectedComment #17
ParisLiakos commentedSome fixes..i missed what MigrateMessage actually did
Comment #18
stevenpatzComment #20
ParisLiakos commentedComment #21
ParisLiakos commentedreroll
Comment #22
jeroentPatch no longer applied so I created a reroll.
Comment #23
ParisLiakos commentedreroll.
After this patch, no usage remains:
RTBC anyone?
Comment #24
penyaskitoArgh
Comment #25
undertext commentedComment #27
undertext commentedOh. randomName() is now randomMachineName().One more reroll.
Comment #28
m1r1k commentedComment #32
penyaskitoI didn't know we could do this :)
Should it be injected?
Should it be injected?
Should it be injected?
Same.
Comment #33
ParisLiakos commented1. See #16
2. Those are being instantiated from all over the place, they are not in the container or controllers/plugins
3. It already uses \Drupal for the state service, so i didnt bother injecting it
4. Its a test so i didnt bother
Comment #34
penyaskitoThen let's RTBC it.
Comment #35
penyaskitoNo, it does not apply again :(
Comment #36
ParisLiakos commentedthanks! i edited the patch manually to make it apply again.
conflicted with #2322889: Various setUp() and tearDown() methods are not protected
Comment #37
alexpottCommitted 9be30ef and pushed to 8.0.x. Thanks!