logActions(): Misplaced use of $action instead of $log['action']

Fixes #1664

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Merge pull request #1669 from Dragooon/fix-logActions

logActions(): Misplaced use of $action instead of $log['action']