[dokuwiki] New PR: introduce INFO_DEPRECATION_LOG event

  • From: "splitbrain" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 1 Jun 2018 11:55:14 +0200 (CEST)

Hi,

splitbrain opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/2409:

This adds an event to dbg_deprecated(). This allows plugins to handle 
deprecation warnings. One example would be @cosmocode/dokuwiki-plugin-sentry

One thing I don't like, but don't know how to avaoid is that this function used 
to abort super early when $conf['allowdebug'] wasn't set.

However for the sentry plugin you probably would want logs, but still do not 
show any debugging to end users (which allow debug would do).

So now the backtrace is always built, the event triggered and then everything 
is sent to dbglog() which may simply throw everything away.

Suggestions on how to improve this welcome.

Please help us to review this pull request, so new contributors get feedback in 
a timely manner.

e0ee99c0-6581-11e8-8933-4a043276febe


-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: introduce INFO_DEPRECATION_LOG event - splitbrain