@@ -139,8 +139,12 @@ func New(execer exec.Interface, bridge string, minVersion string) (Interface, er
139
139
}
140
140
141
141
func (ovsif * ovsExec ) execWithStdin (cmd string , stdinArgs []string , args ... string ) (string , error ) {
142
+ logLevel := glog .Level (4 )
142
143
switch cmd {
143
144
case OVS_OFCTL :
145
+ if args [0 ] == "dump-flows" {
146
+ logLevel = glog .Level (5 )
147
+ }
144
148
args = append ([]string {"-O" , "OpenFlow13" }, args ... )
145
149
case OVS_VSCTL :
146
150
args = append ([]string {"--timeout=30" }, args ... )
@@ -152,9 +156,9 @@ func (ovsif *ovsExec) execWithStdin(cmd string, stdinArgs []string, args ...stri
152
156
stdin := bytes .NewBufferString (stdinString )
153
157
kcmd .SetStdin (stdin )
154
158
155
- glog .V (4 ).Infof ("Executing: %s %s <<\n %s" , cmd , strings .Join (args , " " ), stdinString )
159
+ glog .V (logLevel ).Infof ("Executing: %s %s <<\n %s" , cmd , strings .Join (args , " " ), stdinString )
156
160
} else {
157
- glog .V (4 ).Infof ("Executing: %s %s" , cmd , strings .Join (args , " " ))
161
+ glog .V (logLevel ).Infof ("Executing: %s %s" , cmd , strings .Join (args , " " ))
158
162
}
159
163
160
164
output , err := kcmd .CombinedOutput ()
0 commit comments