Skip to content

Commit

Permalink
fix a spot where we were showing a bytestring instead of decoding it
Browse files Browse the repository at this point in the history
  • Loading branch information
spatten committed May 30, 2024
1 parent 818d8a5 commit d045d93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App/Fossa/ArchiveUploader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ compressAndUpload arcDir tmpDir VendoredDependency{..} = context "compressing an

logSticky $ "Uploading '" <> vendoredName <> "' to secure S3 bucket"
res <- uploadArchive signedURL compressedFile
logDebug $ pretty $ show res
logDebug . pretty $ (decodeUtf8 @Text res)

pure $ Archive vendoredName depVersion

Expand Down
4 changes: 2 additions & 2 deletions src/App/Fossa/SBOM/Analyze.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Control.Effect.Lift
import Control.Effect.Telemetry (Telemetry, trackUsage)
import Control.Monad (void)
import Data.Foldable (traverse_)
import Data.String.Conversion
import Data.String.Conversion (ConvertUtf8 (..), toString, toText)
import Data.Text (Text)
import Effect.Logger (Logger, logDebug, logInfo)
import Fossa.API.Types
Expand Down Expand Up @@ -89,6 +89,6 @@ uploadSBOM config = do

logSticky $ "Uploading '" <> (projectName revision) <> "' to secure S3 bucket"
res <- uploadArchive signedURL $ toString path
logDebug $ pretty $ show res
logDebug . pretty $ (decodeUtf8 @Text res)

pure ()

0 comments on commit d045d93

Please sign in to comment.