mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-17 05:44:57 +00:00
feat(lib): add log filtering rules
Closes #942 Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -78,6 +78,10 @@ type Server struct {
|
||||
logger *slog.Logger
|
||||
}
|
||||
|
||||
func (s *Server) GetLogger(subsystem string) *slog.Logger {
|
||||
return s.logger.With("subsystem", subsystem)
|
||||
}
|
||||
|
||||
func (s *Server) getTokenKeyfunc() jwt.Keyfunc {
|
||||
// return ED25519 key if HS512 is not set
|
||||
if len(s.hs512Secret) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user