pulumi/sdk/go/common/util
Fraser Waters 8d7e8c44cf Fix V logging to also filter out secrets
We use a small logging wrapper around glog for most of our logging. The
global Errorf/Warningf/Infof methods in that module format the string
and args passed in then filter out any secrets before calling into glog
with the final string.

The wrapper also exposed a `V` method to only log if verbosity was set,
but that directly returned a glog.Verbose which mean the Infof calls to
that didn't run our secret filtering code.

This changes the logging wrapper to return a `VerboseShim` (Not a great
name, but `Verbose` was already taken in this module) which is simply a
new type over `glog.Verbose` with the same methods but it calls
`FilterString` on the inputs.

Technically a breaking change, but I think the uses of this will be
source compatible.
2023-02-07 22:22:22 +00:00
..
archive all: Drop ioutil 2023-01-06 16:35:14 -08:00
buildutil sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
ciutil chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
cmdutil cmd/stack output: Print to an io.Writer 2023-01-25 15:17:18 -08:00
contract [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
deepcopy ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
env gosimple: printf, time.Since, TrimPrefix, etc. 2023-01-12 09:55:34 -08:00
executable ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
fsutil all: Drop ioutil 2023-01-06 16:35:14 -08:00
gitutil cli: Fix issue with pulumi new and unstaged files 2022-10-27 22:39:31 +01:00
goversion gosimple: printf, time.Since, TrimPrefix, etc. 2023-01-12 09:55:34 -08:00
httputil all: Drop ioutil 2023-01-06 16:35:14 -08:00
logging Fix V logging to also filter out secrets 2023-02-07 22:22:22 +00:00
mapper Fix mapper panic on map[string]*string handling 2022-12-06 11:03:15 -08:00
result ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
retry move pkg/util/retry -> sdk/go/common/util/retry 2020-03-18 15:47:01 -07:00
rpcutil grpc: WithInsecure is deprecated 2023-01-11 12:15:40 -08:00
yamlutil yamlutil: Export 2-space encoder and refactor encoding package to use 2022-12-10 14:26:14 -08:00