Skip to content

Commit

Permalink
Lower the log level of federator inotify (#3056)
Browse files Browse the repository at this point in the history
* Lower the log level of federator inotify

---------

Co-authored-by: jschaul <[email protected]>
  • Loading branch information
pcapriotti and jschaul authored Feb 3, 2023
1 parent 716b5f8 commit f6e46c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit f6e46c3

Please sign in to comment.