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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

edurenye created an issue. See original summary.

edurenye’s picture

Status: Active » Needs review
FileSize
1.64 KB

Added the IP address from where is deleted the vote.

Berdir’s picture

Status: Needs review » Closed (won't fix)

Watchdog logs the IP for every log message automatically, we don't have to duplicate that.