mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-16 00:59:53 +00:00
make logging non-concurrent, remove mutexes from output pkg
This commit is contained in:
parent
05da409a0a
commit
d94b0abf64
2 changed files with 20 additions and 9 deletions
|
|
@ -3,7 +3,6 @@ package output
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type result struct {
|
||||
|
|
@ -15,7 +14,6 @@ type result struct {
|
|||
}
|
||||
|
||||
type JSONOutput struct {
|
||||
sync.Mutex
|
||||
withSummary bool
|
||||
quiet bool
|
||||
results []result
|
||||
|
|
@ -35,8 +33,6 @@ func NewJSONOutput(withSummary bool, quiet bool) Output {
|
|||
}
|
||||
|
||||
func (o *JSONOutput) Write(filename, kind, version string, err error, skipped bool) {
|
||||
o.Lock()
|
||||
defer o.Unlock()
|
||||
msg, st := "", ""
|
||||
|
||||
s := status(err, skipped)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue