Commit 4e9cc252 authored by Ajit Jagtap's avatar Ajit Jagtap
Browse files

Merge branch 'debug_mode_msg' into 'devbranch'

use of fmt to print fdb debug mode on message

See merge request !193
parents 549df76e 28005cbe
2 merge requests!194Mep release13052020 fix breaking changes,!193use of fmt to print fdb debug mode on message
Showing with 2 additions and 2 deletions
...@@ -2,6 +2,7 @@ package corefdb ...@@ -2,6 +2,7 @@ package corefdb
import ( import (
"errors" "errors"
"fmt"
"os" "os"
"path/filepath" "path/filepath"
"strconv" "strconv"
...@@ -53,9 +54,8 @@ var IsDebugModeOn bool ...@@ -53,9 +54,8 @@ var IsDebugModeOn bool
func init() { func init() {
databases.Setup(1, 1000, 1000) databases.Setup(1, 1000, 1000)
loggermdl.LogError("FDBMODE", os.Getenv("FDBMODE"))
if os.Getenv("FDBMODE") == "debug" { if os.Getenv("FDBMODE") == "debug" {
loggermdl.LogError("fdb debug mode is on") fmt.Println("fdb debug mode is on")
IsDebugModeOn = true IsDebugModeOn = true
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment