SEBA-448 : Setting BBSIM Debug Level

Change-Id: Ic12cf0e106ffa3a4db5bd5bf5ac3c2d723ebfadd
diff --git a/core/mediator.go b/core/mediator.go
index 89715c6..203204f 100644
--- a/core/mediator.go
+++ b/core/mediator.go
@@ -44,6 +44,7 @@
 	intvl_test  int
 	Mode        Mode
 	KafkaBroker string
+	Debuglvl	string
 }
 
 func GetOptions() *option {
@@ -60,12 +61,14 @@
 	intvl_test := flag.Int("V", 1, "Interval each Indication")
 	kafkaBroker := flag.String("k", "", "Kafka broker")
 	o.Mode = DEFAULT
+	debg := flag.String("d", "DEBUG", "Debug Level(TRACE DEBUG INFO WARN ERROR)")
 	flag.Parse()
 	if *modeopt == "aaa" {
 		o.Mode = AAA
 	} else if *modeopt == "both" {
 		o.Mode = BOTH
 	}
+	o.Debuglvl = *debg
 	o.oltid = uint32(*oltid)
 	o.npon = uint32(*npon)
 	o.nonus = uint32(*nonus)
@@ -186,4 +189,4 @@
 		next == device.ONU_INACTIVE {
 	}
 	return nil
-}
\ No newline at end of file
+}