Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 12, 2024
1 parent 4bc0a63 commit 9f9dc0c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.epam.reportportal.message.ReportPortalMessage;
import com.epam.reportportal.message.TypeAwareByteSource;
import com.epam.reportportal.utils.files.Utils;
import com.epam.ta.reportportal.ws.model.log.SaveLogRQ;
import org.apache.logging.log4j.core.Filter;
import org.apache.logging.log4j.core.Layout;
Expand All @@ -38,8 +39,6 @@
import java.util.UUID;

import static com.epam.reportportal.service.ReportPortal.emitLog;
import static com.epam.reportportal.utils.MimeTypeDetector.detect;
import static com.google.common.io.Files.asByteSource;

/**
* Log4j2 appender for report portal
Expand Down Expand Up @@ -105,7 +104,7 @@ public void append(final LogEvent logEvent) {
message = rpMessage.getMessage();
} else if (objectMessage instanceof File) {
final File file = (File) objectMessage;
byteSource = new TypeAwareByteSource(asByteSource(file), detect(file));
byteSource = Utils.getFile(file);
message = "File reported";

} else {
Expand Down

0 comments on commit 9f9dc0c

Please sign in to comment.