Hey,
I am currently working on some WikiData code that deprecates a number of core functions since new more generic ones have been introduced (don't panic - this is all on a branch). Since I want to see if I'm using anything that got deprecated right away, I have deprecation warnings turned on. Now a lot of the code is still using these now deprecated core functions and it will take some time to change all of this. So my question now is how can I continue working ignoring these specific notices I cannot fix now while not turning notices off altogether?
I actually know this cannot be done in with current wfDeprecated and associated config. A few months back I added 3 lines (a global setting and an if with array_key_exists in its condition) that allow ignoring specific deprecation notices, but it got reverted since the functionality was not worth the 3 lines according to some people.
So please enlighten me on how I can proceed with working now.
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. --
Jeroen De Dauw wrote:
I am currently working on some WikiData code that deprecates a number of core functions since new more generic ones have been introduced (don't panic - this is all on a branch). Since I want to see if I'm using anything that got deprecated right away, I have deprecation warnings turned on. Now a lot of the code is still using these now deprecated core functions and it will take some time to change all of this. So my question now is how can I continue working ignoring these specific notices I cannot fix now while not turning notices off altogether?
I actually know this cannot be done in with current wfDeprecated and associated config. A few months back I added 3 lines (a global setting and an if with array_key_exists in its condition) that allow ignoring specific deprecation notices, but it got reverted since the functionality was not worth the 3 lines according to some people.
So please enlighten me on how I can proceed with working now.
You can't just filter the output? This seems like a trivial problem to solve, though it's completely possible I'm missing something.
It sounds like the issue is one of signal and noise. Usually the answer to increasing signal is to reduce noise. Can't you just filter out the deprecation warnings you're interested in or not interested in from whatever output you're reading from?
MZMcBride
Hey,
You can't just filter the output? This seems like a trivial problem to
solve
Yeah, filtering this was trivial and was done by my 3 lines of code.
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. --
wikitech-l@lists.wikimedia.org