Add some logging
This commit is contained in:
parent
69aa82837c
commit
2ea2aa4abb
|
@ -10,6 +10,7 @@
|
|||
, text
|
||||
, uuid
|
||||
, wai
|
||||
, wai-extra
|
||||
, warp
|
||||
, websockets
|
||||
}:
|
||||
|
|
|
@ -30,5 +30,14 @@ pkgs.dockerTools.buildImage {
|
|||
"9160/tcp" = { };
|
||||
"8081/tcp" = { };
|
||||
};
|
||||
Healthcheck = {
|
||||
"Test" = [
|
||||
"CMD-SHELL"
|
||||
"${pkgs.curl} -f http://0.0.0.0:8081"
|
||||
];
|
||||
"Interval" = 30000000000;
|
||||
"Timeout" = 10000000000;
|
||||
"Retries" = 3;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29,8 +29,9 @@ updateRoomState ::
|
|||
m ()
|
||||
updateRoomState newData = do
|
||||
state <- getRoomsState <$> ask
|
||||
_ <- atomically $ swapTVar state newData
|
||||
return ()
|
||||
liftIO $ putStrLn "Upating room state"
|
||||
atomically $ writeTVar state newData
|
||||
liftIO $ putStrLn "Done Upating room state"
|
||||
|
||||
getRoomState ::
|
||||
( HasRoomsState env,
|
||||
|
|
Loading…
Reference in a new issue