summaryrefslogtreecommitdiff
path: root/Biz/Log.hs
AgeCommit message (Collapse)Author
2021-12-07Add simple API key feature to Dragons.devBen Sima
Still need to add this to the CLI, and there should be other features like delete and so on, but this works for now.
2021-11-26Rename Devalloc to DragonsBen Sima
2021-11-26Reimplement Que with ServantBen Sima
Still todo: add authentication. But that can wait. In re-implementing this, I was able to figure out how to get the Go.mult working properly as well. The problem is that a tap from a mult channel does not remove the message from the original channel. I'm not sure if that should be a core feature or not; for now I'm just draining the channel when it's received in the Que HTTP handler. (Also, this would be a good place to put persistence: have a background job read from the original channel, and write the msg to disk via acid-state; this would obviate the need for a flush to nowhere.) Also, streaming is working now. The problem was that Scotty closes the connection after it sees a newline in the body, or something, so streaming over Scotty doesn't actually work. It's fine, Servant is better anyway.
2021-11-26Automatically detect Haskell dependenciesBen Sima
This parses the files contents for imports, then uses ghc-pkg to lookup the package that provides the module. Now I can do that analysis in Haskell instead of nix, which is much easier to code with.
2021-02-23Add Biz.Log middleware that works with systemdBen Sima
Perhaps this is not as performant as the wai-provided one, but it is *much* simpler and follows my output format, which I think is much easier to quickly read. Anyway I doubt logging will ever be a bottleneck, and if it is then I should be able to create some instrument to detect that.
2021-02-17Add boolean and logging pipeline operatorsBen Sima
2021-02-05Add Log.mark and convert some putTexts into Log.infosBen Sima
2021-01-26Create Biz.Log library, extracted from Biz.BildBen Sima