mirror of
https://github.com/srid/ema.git
synced 2024-11-29 09:25:14 +03:00
Fix logging source
This commit is contained in:
parent
5386bf7ca9
commit
6c28042ee7
@ -17,7 +17,11 @@ where
|
||||
import Control.Concurrent (threadDelay)
|
||||
import Control.Exception (finally)
|
||||
import Control.Monad.Logger
|
||||
import Data.Default
|
||||
( LogLevel (LevelDebug, LevelInfo),
|
||||
MonadLogger,
|
||||
logWithoutLoc,
|
||||
)
|
||||
import Data.Default (Default (..))
|
||||
import Data.LVar (LVar)
|
||||
import qualified Data.LVar as LVar
|
||||
import System.Directory (canonicalizePath)
|
||||
@ -53,7 +57,7 @@ mountFileSystemOnLVar ::
|
||||
(FilePath -> FileAction -> m (model -> model)) ->
|
||||
m ()
|
||||
mountFileSystemOnLVar folder pats var toAction = do
|
||||
logInfoN $ "Mounting path " <> toText folder <> " (filter: " <> show pats <> ") onto LVar"
|
||||
log LevelInfo $ "Mounting path " <> toText folder <> " (filter: " <> show pats <> ") onto LVar"
|
||||
LVar.set var =<< do
|
||||
fs <- filesMatching folder pats
|
||||
initialActions <- traverse (`toAction` Update) fs
|
||||
|
Loading…
Reference in New Issue
Block a user