Add some logging
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details

This commit is contained in:
qvalentin 2023-06-19 19:09:20 +02:00
parent 69aa82837c
commit 2ea2aa4abb
3 changed files with 13 additions and 2 deletions

View File

@ -10,6 +10,7 @@
, text
, uuid
, wai
, wai-extra
, warp
, websockets
}:

View File

@ -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;
};
};
}

View File

@ -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,