summaryrefslogtreecommitdiffstats
path: root/adapter/socketclient/socketclient.go
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2019-07-03 13:44:09 +0200
committerOndrej Fabry <ofabry@cisco.com>2019-07-03 13:44:09 +0200
commit15334aab4ad1b09cb698175adf5a02d7cb6fa410 (patch)
treec2c72021a00c5d3be6b9f05e2349e3c92290fd56 /adapter/socketclient/socketclient.go
parentd3b84969e8ec5dabfd5fd3038d0fe67309c63168 (diff)
Fix error counters for VPP 19.04
Change-Id: I87251362668bbe9a31f52c1b5e9b3ab596f7b2f3 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'adapter/socketclient/socketclient.go')
-rw-r--r--adapter/socketclient/socketclient.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/adapter/socketclient/socketclient.go b/adapter/socketclient/socketclient.go
index daca005..2e6d0af 100644
--- a/adapter/socketclient/socketclient.go
+++ b/adapter/socketclient/socketclient.go
@@ -36,8 +36,8 @@ import (
)
const (
- // DefaultSocketName is default VPP API socket file name
- DefaultSocketName = "/run/vpp-api.sock"
+ // DefaultSocketName is default VPP API socket file path.
+ DefaultSocketName = adapter.DefaultBinapiSocket
)
var (
@@ -58,7 +58,8 @@ var (
// DebugMsgIds is global variable that determines debug mode for msg ids
DebugMsgIds = os.Getenv("DEBUG_GOVPP_SOCKMSG") != ""
- Log = logger.New() // global logger
+ // Log is global logger
+ Log = logger.New()
)
// init initializes global logger, which logs debug level messages to stdout.
@@ -66,6 +67,7 @@ func init() {
Log.Out = os.Stdout
if Debug {
Log.Level = logger.DebugLevel
+ Log.Debug("govpp/socketclient: enabled debug mode")
}
}