Add some logging
This commit is contained in:
parent
69aa82837c
commit
2ea2aa4abb
|
@ -10,6 +10,7 @@
|
||||||
, text
|
, text
|
||||||
, uuid
|
, uuid
|
||||||
, wai
|
, wai
|
||||||
|
, wai-extra
|
||||||
, warp
|
, warp
|
||||||
, websockets
|
, websockets
|
||||||
}:
|
}:
|
||||||
|
|
|
@ -30,5 +30,14 @@ pkgs.dockerTools.buildImage {
|
||||||
"9160/tcp" = { };
|
"9160/tcp" = { };
|
||||||
"8081/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 ()
|
m ()
|
||||||
updateRoomState newData = do
|
updateRoomState newData = do
|
||||||
state <- getRoomsState <$> ask
|
state <- getRoomsState <$> ask
|
||||||
_ <- atomically $ swapTVar state newData
|
liftIO $ putStrLn "Upating room state"
|
||||||
return ()
|
atomically $ writeTVar state newData
|
||||||
|
liftIO $ putStrLn "Done Upating room state"
|
||||||
|
|
||||||
getRoomState ::
|
getRoomState ::
|
||||||
( HasRoomsState env,
|
( HasRoomsState env,
|
||||||
|
|
Loading…
Reference in a new issue