-
Notifications
You must be signed in to change notification settings - Fork 3
added logging, ammended method parameters #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @@ -31,6 +31,15 @@ class DatatransResponseController { | |||
| */ | |||
| public function processSuccessResponse(Request $request, PaymentInterface $payment) { | |||
| try { | |||
| if (\Drupal::state()->get('datatrans.debug', FALSE)) { | |||
| if(\Drupal::moduleHandler()->moduleExists('past')) { | |||
| past_event_save('datatrans', $payment->id(), $request); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct. the second argument should be a static machine name to describe what kind of log entry this is, then a user readable label instead of $request and then some arguments, including data from the payment and the request. Instead of $request, it might be much more useful to log $post_data instead.
|
To save some time with the error codes :D |
http://www.tasktrack.ch/issues/13196