diff options
| author | LLLL Colonq <llll@colonq> | 2025-06-08 03:31:16 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-06-08 03:31:16 -0400 |
| commit | 53f00efe6034d03fd383c90c032c50d69e145d61 (patch) | |
| tree | 5f93950259ac6ba180e40f9ea411d947917a02fc /fig-bus/src/Fig/Bus | |
| parent | 676d87fb18b0f9bb7d6bdd47c982e8b8ee26d25b (diff) | |
fig-bus: Log even more
Diffstat (limited to 'fig-bus/src/Fig/Bus')
| -rw-r--r-- | fig-bus/src/Fig/Bus/Binary.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fig-bus/src/Fig/Bus/Binary.hs b/fig-bus/src/Fig/Bus/Binary.hs index f800cf7..52de1d9 100644 --- a/fig-bus/src/Fig/Bus/Binary.hs +++ b/fig-bus/src/Fig/Bus/Binary.hs @@ -56,13 +56,13 @@ main bind = do IORef.modifyIORef' subs (ev:) MVar.modifyMVar_ st (pure . subscribe ev h) go - _else -> log "Malformed subscription" + p -> log $ "Malformed subscription from " <> tshow peer <> ": " <> tshow p 112 -> (,) <$> readEvent h <*> readLengthPrefixed h >>= \case (Just ev@(EventType e), Just d) -> do log $ tshow peer <> " publishing to: " <> tshow e publish ev d =<< MVar.readMVar st go - _else -> log "Malformed publish" + p -> log $ "Malformed publish from " <> tshow peer <> ": " <> tshow p w -> log $ "Unknown command code: " <> tshow w go , do |
