Commit Graph

7 Commits (master)

Author SHA1 Message Date
Mariano Cano c0b7c33a58
Use a function as the error logger
This commit addresses comment in the code review. Now, instead of
injecting an slog.Logger we can inject any method that can use a more
flexible implementation.
2 weeks ago
Mariano Cano f3f484cee2
Log errors using slog.Logger
This commit allows logging errors in a slog.Logger injected in the
context. This type of logger is not currently used directly in step-ca,
but this will change in the future.
2 weeks ago
Herman Slatman b8c306ebfa
Refactor tests stylistically 2 years ago
Panagiotis Siatras b7f4881972
merged log tests 2 years ago
Herman Slatman 27bbc3682b
Improve error log test readability 2 years ago
Herman Slatman 362be72120
Fix `StackTracedError` logging
When running with `STEPDEBUG=1`, a response with a `StackTracedError`
would result in a nil pointer error. This commit fixes the check and
adds a test case.
2 years ago
Panagiotis Siatras 80abda22ee
api/log: initial implementation of the package (#859)
* api/log: initial implementation of the package

* api: refactored to support api/log

* scep/api: refactored to support api/log

* api/log: documented the package

* api: moved log-related tests to api/log
2 years ago