Sanitize log entries
While most of these log entries come from either github or our own database, it's still a good idea to sanitize them.
This commit is contained in:
parent
114f17718b
commit
e93b6d73e5
5 changed files with 17 additions and 10 deletions
|
|
@ -11,6 +11,7 @@ import (
|
|||
"time"
|
||||
|
||||
apiParams "garm/apiserver/params"
|
||||
"garm/util"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/spf13/cobra"
|
||||
|
|
@ -61,7 +62,7 @@ var logCmd = &cobra.Command{
|
|||
log.Printf("read: %q", err)
|
||||
return
|
||||
}
|
||||
log.Print(string(message))
|
||||
log.Print(util.SanitizeLogEntry(string(message)))
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue