Skip to content

Commit 6dc0fcc

Browse files
committed
print dropped logs for the sake of local debugging
1 parent 5aff984 commit 6dc0fcc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/UnidocServer/Operations/Procedures/Unidoc.BuildArtifact (ext).swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import HTTPServer
2+
import LZ77
23
import S3
34
import S3Client
45

@@ -42,6 +43,11 @@ extension Unidoc.BuildArtifact
4243
else
4344
{
4445
Log[.warning] = "No destination bucket configured for exporting build logs!"
46+
for log:Unidoc.BuildLog in self.logs
47+
{
48+
print(String.init(decoding: try Gzip.extract(from: log.text.bytes),
49+
as: Unicode.UTF8.self))
50+
}
4551
}
4652
}
4753

0 commit comments

Comments
 (0)