1. Removed `github.com/pkg/errors` and replaced with the standard library (linter now rejects the old package)
2. Cron test: fixed race conditions and linting
3. Renamed `logger/default.go` to `logger/nop_logger.go` to match the name of the struct inside
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Adds IsOutputLevelEnabled to allow wasm to opt-out of generating strings
Allocation of log messages is expensive in WebAssembly. This exposes the
underlying IsLevelEnabled as IsOutputLevelEnabled. This will allow
request-scoped caching of this and help wasm filters avoid overhead
created for no reason.
Signed-off-by: Adrian Cole <adrian@tetrate.io>
* lint
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Signed-off-by: Adrian Cole <adrian@tetrate.io>
This is particularly useful when building tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Added to package to convert to pointers
Also updated deps and removed agrea/ptr
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>