Skip to content

Commit

Permalink
fix: fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikRevich committed Dec 8, 2024
1 parent f282498 commit e05399c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions cli/src/main/java/com/objectstorage/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import com.objectstorage.service.command.external.clean.object.CleanObjectExternalCommandService;
import com.objectstorage.service.command.external.cleanall.CleanAllExternalCommandService;
import com.objectstorage.service.command.external.content.ContentExternalCommandService;
import com.objectstorage.service.command.external.download.backup.DownloadBackupExternalCommandService;
import com.objectstorage.service.command.external.download.object.DownloadObjectExternalCommandService;
import com.objectstorage.service.command.external.apply.ApplyExternalCommandService;
import com.objectstorage.service.command.external.upload.object.UploadObjectExternalCommandService;
import com.objectstorage.service.command.external.withdraw.WithdrawExternalCommandService;
import com.objectstorage.service.command.external.version.VersionExternalCommandService;
import com.objectstorage.service.command.internal.health.HealthCheckInternalCommandService;
Expand Down Expand Up @@ -43,6 +45,8 @@
CleanAllExternalCommandService.class,
ContentExternalCommandService.class,
DownloadObjectExternalCommandService.class,
DownloadBackupExternalCommandService.class,
UploadObjectExternalCommandService.class,
VersionExternalCommandService.class,
VersionExternalCommandService.class,
HealthCheckInternalCommandService.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* Service used for logging fatal level application state changes.
*/
@Plugin(name = "fatalappender", category = Core.CATEGORY_NAME, elementType = Appender.ELEMENT_TYPE)
@Plugin(name = "FatalAppender", category = Core.CATEGORY_NAME, elementType = Appender.ELEMENT_TYPE)
public class FatalAppender extends AbstractAppender {
protected FatalAppender(String name, Filter filter) {
super(name, filter, null, false, null);
Expand Down
6 changes: 3 additions & 3 deletions cli/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Configuration status="ERROR" strict="true" packages="com.objectstorage.logging">
<Appenders>
<fatalappender name="fatalappender" />
<FatalAppender name="FatalAppender" />
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
</Console>
Expand Down Expand Up @@ -54,7 +54,7 @@
<AppenderRef ref="warn_logs_file" />
<AppenderRef ref="info_logs_file" />
<AppenderRef ref="debug_logs_file" />
<AppenderRef ref="fatalappender" />
<AppenderRef ref="FatalAppender" />
</Root>
</Loggers>
</Configuration>

0 comments on commit e05399c

Please sign in to comment.