Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
+++ b/src/Form/PollViewForm.php
@@ -256,21 +268,23 @@ class PollViewForm extends FormBase {
+ \Drupal::logger('poll')->notice('%user\'s vote in Poll #%poll deleted.', array(
+ '%user' => $this->currentUser()->id(),
+ '%poll' => $this->poll->id(),
+ ));
This is pretty useless for an anonymous user currently.
Proposed resolution
Improve log message.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | improve_log_message_for-2611642-2.patch | 1.64 KB | edurenye |
|
Comments
Comment #2
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedAdded the IP address from where is deleted the vote.
Comment #3
BerdirWatchdog logs the IP for every log message automatically, we don't have to duplicate that.