obd: Add console log to OBD output (#10372)

This commit is contained in:
Anis Elleuch authored and GitHub committed 2020-09-15 18:02:54 -07:00
1 parent 80e3dce631
commit 8ea55f9dba
12 files changed
+130 -25

No files matched your search

+4
View File
@@ -168,6 +168,10 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
cli.ShowCommandHelpAndExit(ctx, gatewayName, 1)
}
// Initialize globalConsoleSys system
globalConsoleSys = NewConsoleLogger(GlobalContext)
logger.AddTarget(globalConsoleSys)
// Handle common command args.
handleCommonCmdArgs(ctx)