mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Improved event log console output.
This commit is contained in:
parent
a05b1684e6
commit
70abc47ae0
2 changed files with 6 additions and 2 deletions
|
@ -137,6 +137,7 @@ class ShowEventLogCommand extends Command
|
|||
$headers = ['ID', 'Timestamp', 'Type', 'User', 'Target Type', 'Target'];
|
||||
if ($showExtra) {
|
||||
$headers[] = 'Extra data';
|
||||
$table->setColumnMaxWidth(6, 50);
|
||||
}
|
||||
$table->setHeaders($headers);
|
||||
|
||||
|
@ -144,6 +145,9 @@ class ShowEventLogCommand extends Command
|
|||
$this->addTableRow($table, $entry, $showExtra);
|
||||
}
|
||||
|
||||
$table->setColumnMaxWidth(3, 20);
|
||||
$table->setColumnMaxWidth(5, 30);
|
||||
|
||||
$table->render();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue