~erock

Ann Arbor, MI

https://erock.io

Recent activity

[PATCH aerc] fix typo in quoted reply template a month ago

From Eric Bower to ~sircmpwn/aerc

---
After running a fresh install of aerc there was a config error when
trying to start the app.

 templates/quoted_reply | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/quoted_reply b/templates/quoted_reply
index d74415a..8ec0ec7 100644
--- a/templates/quoted_reply
+++ b/templates/quoted_reply
@@ -1,3 +1,3 @@

On {{dateFormat (.OriginalDate | toLocal) "Mon Jan 2, 2006 at 3:04 PM MST"}}, {{(index .OriginalFrom 0).Name}} wrote:
[message trimmed]

[PATCH] Add access and error logging for requests made to the server. a month ago

From Eric Bower to ~gsthnz/public-inbox

---
I used nginx as a template for access and error logs.  The access logs go to
stdout and the error logs go to stdin.

ex access logs:
12.123.123.12:58282 [2021-03-06 05:03:38.467249638 +0000 UTC m=+13.910850447] "GET index.gmi" [20]
12.123.123.12:58284 [2021-03-06 05:15:34.430020167 +0000 UTC m=+729.873620943] "GET /sdfsf" [51]

ex error logs:
2021-03-06 05:15:34.430449671 +0000 UTC m=+729.874050458 [error] Not found, client: 12.123.123.12:58284, request: "GET /sdfsf"

 gemini.go  | 15 +++++++++------
 logging.go | 21 +++++++++++++++++++++
 server.go  | 17 +++++++++--------
[message trimmed]