Skip to content

Commit

Permalink
[RELEASE] Version 12.5.4 with small bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoffmann1979 committed Sep 25, 2024
2 parents 1ef0953 + c9f809d commit 39748c5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# In2publish Core Change Log

15.5.4:
- [BUGFIX] Enable Logging in Command on foreign
- [BUGFIX] LogLevel is evaluated correctly

12.5.3:

- [CODESTYLE] Make qa happy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
use In2code\In2publishCore\Component\PostPublishTaskExecution\Domain\Model\Task\AbstractTask;
use In2code\In2publishCore\Component\PostPublishTaskExecution\Domain\Repository\TaskRepositoryInjection;
use In2code\In2publishCore\Service\Context\ContextServiceInjection;
use Psr\Log\LoggerInterface;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand All @@ -46,21 +47,14 @@

use const JSON_THROW_ON_ERROR;

class RunTasksInQueueCommand extends Command
class RunTasksInQueueCommand extends Command implements LoggerAwareInterface
{
use ContextServiceInjection;
use TaskRepositoryInjection;
use LoggerAwareTrait;

public const IDENTIFIER = 'in2publish_core:publishtasksrunner:runtasksinqueue';

protected ?LoggerInterface $logger = null;

public function __construct(LoggerInterface $logger)
{
$this->logger = $logger;
parent::__construct();
}

public function isEnabled(): bool
{
return $this->contextService->isForeign();
Expand Down
4 changes: 2 additions & 2 deletions Classes/Utility/LogUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
* This copyright notice MUST APPEAR in all copies of the script!
*/

use Psr\Log\LogLevel;
use TYPO3\CMS\Core\Log\LogLevel;
use TYPO3\CMS\Core\Messaging\AbstractMessage;

class LogUtility
{
public static function translateLogLevelToSeverity(int $logLevel): int
{
switch ($logLevel) {
switch (LogLevel::getInternalName($logLevel)) {
case LogLevel::DEBUG:
$severity = AbstractMessage::NOTICE;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@
'hidden' => true,
'schedulable' => false,
],
)
->public();
);
};
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'title' => 'in2publish Core',
'description' => 'Content publishing extension to connect stage and production server',
'category' => 'plugin',
'version' => '12.5.3',
'version' => '12.5.4',
'state' => 'stable',
'clearCacheOnLoad' => true,
'author' => 'Alex Kellner, Oliver Eglseder, Thomas Scheibitz, Stefan Busemann',
Expand Down

0 comments on commit 39748c5

Please sign in to comment.