Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions changelog.d/5-internal/federator-log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lower the log level of federator inotify
6 changes: 3 additions & 3 deletions services/federator/src/Federator/Monitor/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ delMonitor monitor = Polysemy.resourceToIOFinal
stop (wd, _) = do
-- ignore exceptions when removing watches
embed . void . try @IOException $ removeWatch wd
Log.debug $
Log.trace $
Log.msg ("stopped watching file" :: Text)
. Log.field "descriptor" (show wd)

Expand All @@ -153,7 +153,7 @@ mkMonitor ::
Sem r Monitor
mkMonitor runSem tlsVar rs = do
inotify <- embed initINotify
Log.debug $
Log.trace $
Log.msg ("inotify initialized" :: Text)
. Log.field "inotify" (show inotify)

Expand Down Expand Up @@ -244,7 +244,7 @@ addWatchedFile monitor wpath = do
let pathText = Text.decodeUtf8With Text.lenientDecode (watchedPath wpath)
case r of
Right w ->
Log.debug $
Log.trace $
Log.msg ("watching file" :: Text)
. Log.field "descriptor" (show w)
. Log.field "path" pathText
Expand Down