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

Fixes #1664

Signed-off-by: Shitiz Garg <mail@dragooon.net>