Jim
a4f54cb98f
refactor (events): QOL fix: turn off events for tests. ( #3163 )
2023-04-14 20:01:14 -04:00
Johan Brandhorst-Satzkorn
3c29308673
chore: Add license headers to all files
2023-02-03 15:54:27 -08:00
Johan Brandhorst-Satzkorn
f57454b6b9
Rewrite interface{} to any ( #2535 )
...
* chore: Rewrite interface{} to any
* Add ignore revs
2022-10-25 19:29:38 -04:00
Jeff Mitchell and Jim
7ab7c8eaf4
Have fallback eventing use json format ( #2216 )
...
* Have fallback eventing use json format
The server will initialize a logger via InitFallbackLogger(...)
after setting up the server's logging (and honoring the related
cmd flags). This fallback logger will be used if when no eventer
is initialized.
If no fallback logger is initialized, then a event.defaultLogger() will
be used if no eventer is defined.
Co-authored-by: Jim <jlambert@hashicorp.com >
2022-07-11 16:12:02 -04:00
Timothy Messier
21c0509a82
chore(event): Reduce log noise for tests
...
This silences error messages when:
- There is no eventer in the context.Context
- There is no SysEventer
- And a new env var is set
Previously when the first two conditions where met, the error was logged
to a default hclog.Logger with the error being wrapped in a message to
note the lack of an eventer. In production this is a very important
message to help operators fix a likely misconfiguration. However, in
tests it is common to not have an eventer setup, meaning this generates
a lot of noise. This uses the CI environment variable which is an
environment variable set by most common CI environments. Developers can
set this variable locally to reduce the log noise:
export CI=true
See:
https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
https://docs.travis-ci.com/user/environment-variables/#default-environment-variables
2022-06-21 14:28:02 +00:00
Timothy Messier
4599e64cab
feat(event): Remove BOUNDARY_DEVELOPER_ENABLE_EVENTS env var
2022-04-20 13:32:32 -04:00
s-christoff and Jim
6b78108ecf
Update primary error functions to take a context, deprecate old functions ( #1358 )
...
* add new error funcs which take a ctx and deprecate existing funcs
* use context where available when writing error events
* remove circular internal/errors pkg dep
* suppress some chatty errors using errors.WithoutEvent()
* convert auth oidc funcs to take context where needed to write events
Co-authored-by: Jim <jlambert@hashicorp.com >
2021-07-29 20:52:56 -04:00
Jim
70ad081e39
Events: convert from hclog to events ( #1409 )
2021-07-28 06:31:16 -04:00
Jim
11124794bf
Events: add node for formatting/filtering cloudevents ( #1390 )
2021-07-25 17:40:54 -04:00
Jim
1daa3ebefe
integrate events into the servers ( #1355 )
2021-07-08 15:50:25 -04:00
Jim
b3a74584ca
Add WriteSysEvent to the events package. ( #1360 )
2021-06-30 13:34:49 -04:00
s-christoff
d143f398c0
Change error packages for events ( #1339 )
2021-06-22 16:23:27 -05:00
Jim
1b980a0a0e
align directory name with pkg name ( #1284 )
2021-06-06 17:11:59 -04:00