wip-flag-migration #28
@ -6,6 +6,7 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -71,6 +72,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Register the flag
|
// Register the flag
|
||||||
|
|||||||
|
log.Printf("Registering flagName:%s; flagValue:%v", flagName, flagValue)
|
||||||
state.FlagDebugger.Register(uint32(flagValue), flagName)
|
state.FlagDebugger.Register(uint32(flagValue), flagName)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +107,7 @@ func main() {
|
|||||||
|
|
||||||
fp := path.Join(dp, sessionId)
|
fp := path.Join(dp, sessionId)
|
||||||
|
|
||||||
ussdHandlers, err := ussd.NewHandlers(fp, &st,sessionId)
|
ussdHandlers, err := ussd.NewHandlers(fp, &st, sessionId)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "handler setup failed with error: %v\n", err)
|
fmt.Fprintf(os.Stderr, "handler setup failed with error: %v\n", err)
|
||||||
kamikazechaser
commented
Exit in main if any setup fails. Exit in main if any setup fails.
|
|||||||
|
Loading…
Reference in New Issue
Block a user
A logline to show debug the flag loaded would be nice