Skip to content

Make the flat file processor deprecated message more useful - #14160

Merged
alroniks merged 1 commit into
modxcms:2.xfrom
Mark-H:fix-flatfilelog
Dec 5, 2018
Merged

Make the flat file processor deprecated message more useful#14160
alroniks merged 1 commit into
modxcms:2.xfrom
Mark-H:fix-flatfilelog

Conversation

@Mark-H

@Mark-H Mark-H commented Nov 28, 2018

Copy link
Copy Markdown
Collaborator

What does it do?

The new deprecated messages introduced in #14136 are being triggered now that 2.7 is out, but the one for flat file processors is missing some context. This PR changes that message a bit, to include the calling action and the path.

Why is it needed?

Previous message lacked the information needed to identify the problem:

[2018-11-28 21:50:14] (ERROR in modProcessor::run @ /home/user/public_html/core/model/modx/modprocessor.class.php : 177) Flat file processor support is deprecated since version 2.7.0.

Now, it's more helpful:

[2018-11-28 21:59:26] (ERROR in modProcessor::run @ /home/user/public_html/core/model/modx/modprocessor.class.php : 177) Flat file processor support, used for action system/event with path /home/user/public_html/core/model/modx/processors/system/config.js.php, is deprecated since version 2.7.0.

Related issue(s)/PR(s)

#14136, #14127

@alroniks alroniks self-assigned this Dec 3, 2018
@alroniks alroniks added proposal Proposal about improvement aka RFC. Need to be discussed before start implementation. pr-state/ready-for-merging labels Dec 3, 2018
alroniks pushed a commit to alroniks/revolution that referenced this pull request Dec 5, 2018
…14160]

* upstream/pr/14160:
  Make the flat file processor deprecated message more useful for pinpointing the source
@alroniks
alroniks merged commit 2b3f8e5 into modxcms:2.x Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposal Proposal about improvement aka RFC. Need to be discussed before start implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants