Skip to content

Commit 9f2a680

Browse files
authored
Merge pull request #207 from anarkiwi/deb
Bump to 0.9.0, move non-error OVS command running logging to trace.
2 parents 8ed45d2 + 7ab1def commit 9f2a680

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v0.9.0 (2020-10-21)
2+
3+
- Move non-error OVS debug to trace level
4+
- Add support for setting container/NAT interface MAC prefixes.
5+
16
# v0.8.0 (2020-10-09)
27

38
- add JSON endpoint to get dovesnap state

main.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import (
99
)
1010

1111
const (
12-
version = "0.8.0"
12+
version = "0.9.0"
1313
)
1414

1515
func main() {
16+
flagTrace := flag.Bool("trace", false, "enable trace level debugging")
1617
flagDebug := flag.Bool("debug", false, "enable debugging")
1718
flagFaucetconfrpcServerName := flag.String(
1819
"faucetconfrpc_addr", "localhost", "address of faucetconfrpc server")
@@ -35,7 +36,9 @@ func main() {
3536
flagStatusServerPort := flag.Int(
3637
"status_port", 9401, "port for status server")
3738
flag.Parse()
38-
if *flagDebug {
39+
if *flagTrace {
40+
log.SetLevel(log.TraceLevel)
41+
} else if *flagDebug {
3942
log.SetLevel(log.DebugLevel)
4043
}
4144
d := ovs.NewDriver(

ovs/ovsdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func RunCmd(cmd string, args ...string) (string, error) {
1919
if err != nil {
2020
log.Debugf("FAILED: %v, %s", args, output)
2121
} else {
22-
log.Debugf("OK: %v", args)
22+
log.Tracef("OK: %v", args)
2323
}
2424
return strings.TrimSuffix(string(output), "\n"), err
2525
}

0 commit comments

Comments
 (0)