mirror of https://github.com/hashicorp/consul
agent: refactor: log to stderr during tests
parent
2afafe6911
commit
a0368e3827
|
@ -318,7 +318,7 @@ type aclFilter struct {
|
||||||
// newACLFilter constructs a new aclFilter.
|
// newACLFilter constructs a new aclFilter.
|
||||||
func newACLFilter(acl acl.ACL, logger *log.Logger, enforceVersion8 bool) *aclFilter {
|
func newACLFilter(acl acl.ACL, logger *log.Logger, enforceVersion8 bool) *aclFilter {
|
||||||
if logger == nil {
|
if logger == nil {
|
||||||
logger = log.New(os.Stdout, "", log.LstdFlags)
|
logger = log.New(os.Stderr, "", log.LstdFlags)
|
||||||
}
|
}
|
||||||
return &aclFilter{
|
return &aclFilter{
|
||||||
acl: acl,
|
acl: acl,
|
||||||
|
|
Loading…
Reference in New Issue