- refactor secrets
- add support for env in config - redact sensitive information in logs/responses
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
"github.com/AlexxIT/go2rtc/internal/api"
|
||||
"github.com/AlexxIT/go2rtc/internal/app"
|
||||
"github.com/AlexxIT/go2rtc/pkg/shell"
|
||||
"github.com/rs/zerolog"
|
||||
)
|
||||
|
||||
@@ -127,7 +128,7 @@ func GetOrPatch(query url.Values) *Stream {
|
||||
|
||||
// check if name param provided
|
||||
if name := query.Get("name"); name != "" {
|
||||
log.Info().Msgf("[streams] create new stream url=%s", source)
|
||||
log.Info().Msgf("[streams] create new stream url=%s", shell.Redact(source))
|
||||
|
||||
return Patch(name, source)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user