Browse Source

Merge pull request #1102 from SanderKnape/logging

Add additional logging for optional features
Rajat Chopra 6 years ago
parent
commit
0fb4710469
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main.go

+ 2 - 0
main.go

@@ -300,6 +300,7 @@ func main() {
 			wg.Wait()
 			os.Exit(1)
 		}
+		log.Infof("Setting up masking rules")
 		go network.SetupAndEnsureIPTables(network.MasqRules(config.Network, bn.Lease()), opts.iptablesResyncSeconds)
 	}
 
@@ -307,6 +308,7 @@ func main() {
 	// In Docker 1.12 and earlier, the default FORWARD chain policy was ACCEPT.
 	// In Docker 1.13 and later, Docker sets the default policy of the FORWARD chain to DROP.
 	if opts.iptablesForwardRules {
+		log.Infof("Changing default FORWARD chain policy to ACCEPT")
 		go network.SetupAndEnsureIPTables(network.ForwardRules(config.Network.String()), opts.iptablesResyncSeconds)
 	}