Lasa is a stateless proxy that generates a RSS or an Atom feed from a Standard.site publication. lasa.anhgelus.world
rss atom atprotocol standard-site atproto
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(cli): print stack trace after panic

+5 -3
+4 -2
cmd/lasad/run.go
··· 9 9 "net/http" 10 10 "os" 11 11 "os/signal" 12 + "runtime/debug" 12 13 "syscall" 13 14 "time" 14 15 ··· 148 149 log := slog.With("uri", r.RequestURI) 149 150 defer func() { 150 151 if err := recover(); err != nil { 152 + debug.PrintStack() 151 153 w.WriteHeader(http.StatusInternalServerError) 152 - log.Error("panic!") 154 + log.Error("panic! (stack trace printed to stderr)") 153 155 } 154 156 }() 155 157 now := time.Now() 156 158 h.ServeHTTP(status, r.WithContext(ctx)) 157 159 log = log.With("status", status.code, "duration", time.Since(now)) 158 160 if status.code < 400 { 159 - log.Debug("served") 161 + log.Debug("handled") 160 162 } else if status.code < 500 { 161 163 cfg := ctx.Value(keyCfg).(*config.Config) 162 164 if (status.code == http.StatusNotFound && cfg.LogNotFound) ||
+1 -1
justfile
··· 12 12 {{docker}} run --rm --name {{valkey_container}} -p 6379:6379 -d docker.io/valkey/valkey:alpine 13 13 14 14 stop: 15 - {{docker}} stop {{valkey_container}} 15 + {{docker}} stop {{valkey_container}} 16 16 17 17 build: build-lasa build-lasad 18 18