VOL-1305 Separation of DHCP/AAA emulation part from OLT/ONUs emulation part
Change-Id: Idd2c6fb9bee7b7dca967b9bd49f6189343d1357f
diff --git a/common/logger.go b/common/logger.go
index b2701e1..c707601 100644
--- a/common/logger.go
+++ b/common/logger.go
@@ -17,36 +17,36 @@
package logger
import (
- "strings"
"log"
+ "strings"
)
-func Error(s string, opts ...interface{}){
+func Error(s string, opts ...interface{}) {
trimmed := strings.TrimRight(s, "\n")
- if len(opts) == 0{
+ if len(opts) == 0 {
log.Printf("[ERROR]:%s\n", trimmed)
- }else{
+ } else {
fmt := "[ERROR]:" + trimmed + "\n"
log.Printf(fmt, opts...)
}
}
-func Debug(s string, opts ...interface{}){
+func Debug(s string, opts ...interface{}) {
trimmed := strings.TrimRight(s, "\n")
- if len(opts) == 0{
+ if len(opts) == 0 {
log.Printf("[DEBUG]:%s\n", trimmed)
- }else{
+ } else {
fmt := "[DEBUG]:" + trimmed + "\n"
log.Printf(fmt, opts...)
}
}
-func Info(s string, opts ...interface{}){
+func Info(s string, opts ...interface{}) {
trimmed := strings.TrimRight(s, "\n")
- if len(opts) == 0{
+ if len(opts) == 0 {
log.Printf("[INFO]:%s\n", trimmed)
- }else{
+ } else {
fmt := "[INFO]:" + trimmed + "\n"
log.Printf(fmt, opts...)
}
-}
\ No newline at end of file
+}