Added log to show debug the flag loaded

This commit is contained in:
Alfred Kamanda 2024-09-04 12:19:34 +03:00
parent 8ffc5d67cc
commit 1957606bc2
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -6,6 +6,7 @@ import (
"flag"
"fmt"
"io"
"log"
"os"
"path"
"strconv"
@ -71,6 +72,7 @@ func main() {
}
// Register the flag
log.Printf("Registering flagName:%s; flagValue:%v", flagName, flagValue)
state.FlagDebugger.Register(uint32(flagValue), flagName)
}
@ -105,7 +107,7 @@ func main() {
fp := path.Join(dp, sessionId)
ussdHandlers, err := ussd.NewHandlers(fp, &st,sessionId)
ussdHandlers, err := ussd.NewHandlers(fp, &st, sessionId)
if err != nil {
fmt.Fprintf(os.Stderr, "handler setup failed with error: %v\n", err)