diff options
author | 2024-04-22 08:59:30 +0000 | |
---|---|---|
committer | 2024-04-22 08:59:30 +0000 | |
commit | 0db9e34b69434baba9e24e41b2a3992cc191b418 (patch) | |
tree | 06cd949499f57d0da2c4e947e97280bc7bc1cde1 /vendor/github.com/KimMachineGun/automemlimit/memlimit/logger.go | |
parent | [bugfix] Fix incorrect field name for status source, add helpful message (#2854) (diff) | |
download | gotosocial-0db9e34b69434baba9e24e41b2a3992cc191b418.tar.xz |
[chore]: Bump github.com/KimMachineGun/automemlimit from 0.5.0 to 0.6.0 (#2859)
Diffstat (limited to 'vendor/github.com/KimMachineGun/automemlimit/memlimit/logger.go')
-rw-r--r-- | vendor/github.com/KimMachineGun/automemlimit/memlimit/logger.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/KimMachineGun/automemlimit/memlimit/logger.go b/vendor/github.com/KimMachineGun/automemlimit/memlimit/logger.go new file mode 100644 index 000000000..4cf0b589d --- /dev/null +++ b/vendor/github.com/KimMachineGun/automemlimit/memlimit/logger.go @@ -0,0 +1,13 @@ +package memlimit + +import ( + "context" + "log/slog" +) + +type noopLogger struct{} + +func (noopLogger) Enabled(context.Context, slog.Level) bool { return false } +func (noopLogger) Handle(context.Context, slog.Record) error { return nil } +func (d noopLogger) WithAttrs([]slog.Attr) slog.Handler { return d } +func (d noopLogger) WithGroup(string) slog.Handler { return d } |