[VOL-2364] handle sub-sequent onuDiscoveryIndication
If ChildDeviceDetected times out then the device never receives the
"enable" call. With this patch we are allowing the device to send a new
discovery indication to retry the process (the OpenOlt agent keeps
sending discovery until an "enable" call is received for that device)
Change-Id: I6a2f5d5e9b0a001361bdca1feb14ca22cf092138
diff --git a/main.go b/main.go
index 94f4d19..97f6ca3 100644
--- a/main.go
+++ b/main.go
@@ -58,7 +58,7 @@
}
func init() {
- _, _ = log.AddPackage(log.JSON, log.DebugLevel, nil)
+ _, _ = log.AddPackage(log.CONSOLE, log.DebugLevel, nil)
}
func newAdapter(cf *config.AdapterFlags) *adapter {
@@ -452,8 +452,6 @@
log.With(log.Fields{"error": err}).Fatal("Cannot setup logging")
}
- log.SetPackageLogLevel("github.com/opencord/voltha-lib-go/v3/pkg/adapters/common", log.DebugLevel)
-
defer log.CleanUp()
// Print version / build information and exit