Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Hyperion/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ doAnalyze Config{..} packageName bks = do
let -- TODO Use output of hostname(1) as reasonable default.
hostId = Nothing :: Maybe Text
metadata =
-- Append user metadata at the end so that the user can rewrite
-- @timestamp@, for instance.
HashMap.fromList [ "timestamp" JSON..= now, "location" JSON..= hostId ]
<> configUserMetadata
configUserMetadata
-- Prepend user metadata so that the user can rewrite @timestamp@,
-- for instance.
<> HashMap.fromList [ "timestamp" JSON..= now, "location" JSON..= hostId ]
BS.hPutStrLn h $ JSON.encode $ json metadata report
when configPretty (printReports report)
maybe (return ()) (\_ -> IO.hClose h) configOutputPath
Expand Down