Skip to content

Commit

Permalink
Bugfix get username for log...
Browse files Browse the repository at this point in the history
  • Loading branch information
ctippler committed Jul 24, 2018
1 parent f53ad0f commit a995a2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public function cancelAction(Request $request)
try {
$pid = $monitoringItem->getPid();
if ($pid) {
$message = 'Process with PID "'.$pid.'" killed by Backend User: '.$request->getUser()->getName();
$message = 'Process with PID "'.$pid.'" killed by Backend User: '.$this->getUser()->getUser()->getName();
$monitoringItem->getLogger()->warning($message);
$monitoringItem->setPid(null)->setStatus($monitoringItem::STATUS_FAILED)->save();
\Pimcore\Tool\Console::exec('kill -9 '.$pid);
Expand Down

0 comments on commit a995a2b

Please sign in to comment.