Tags: zoominsoftware/keter
Tags
fix: remove multiline copy of request in HttpException logs Here we have 2 types of Request: - Network.HTTP.Client.Request - Network.WAI.Request Both contain almost the same set of fields (the former only has redirectCount, responseTimeout, proxySecureMode; the latter has rawPathInfo, rawQueryString, vault). The former gets included in a field of HttpException. The problem is, http-client's Show instance formats it in multiple lines. This screws up line-oriented logs too much. Since we're logging WAI's version of Request anyway, drop the http-client's one, via special-casing the showExc for HttpException.
feat: add "app-crash-hook" in global keter config If set to a shell command (script) -- keter will execute the command after every crash (termination with nonzero exitcode) of any app bundle. The script receives 2 env variables: * KETER_APP_NAME -- with the crashed bundle name * KETER_APP_EXITCODE -- with the integer exit status of main app-bundle process, this allows to disambiguate termination causes.
cleanup: fix lints & warns Reduced 70 lints to 20 (on stock hlint config). Predominantly: * redundant brackets * redundant $ * eta reductions of dummy arg names * unused and scattered imports * unused LANGUAGE pragmas * unused local binds * an instance of name-shadowing In Keter.Cli, prog description factored out. In Keter.LabelMap, use `Prelude.any` instead of the clunky case-match.
Discard UnknownHostStatus merge and revert to 1.4.3.1.101
PreviousNext