13 lines
405 B
Haskell
13 lines
405 B
Haskell
module Jobs.Handler.SetLogSettings
|
|
( dispatchJobSetLogSettings
|
|
) where
|
|
|
|
import Import
|
|
|
|
dispatchJobSetLogSettings :: InstanceId -> LogSettings -> Handler ()
|
|
dispatchJobSetLogSettings jInstance jLogSettings = do
|
|
instanceId <- getsYesod appInstanceID
|
|
unless (instanceId == jInstance) $ fail "Incorrect instance"
|
|
lSettings <- getsYesod appLogSettings
|
|
atomically $ writeTVar lSettings jLogSettings
|