File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ func makeapp() *cli.App {
9393 cli.BoolFlag {Name : "debug" , Usage : "Enable debug logging" },
9494 cli.BoolFlag {Name : "quiet" , Usage : "Decrease verbosity of the output" },
9595 cli.BoolFlag {Name : "profile" , Usage : "Enable execution profiling" },
96- cli.BoolFlag {Name : "dump-raw-comm " , Usage : "Dump all the communication between the agent and the server " },
96+ cli.BoolFlag {Name : "watch " , Usage : "Enable watch mode " },
9797 cli.IntFlag {Name : "duration" , Usage : "If set, game will stop after this durarion (in seconds)" },
9898 },
9999 Action : func (c * cli.Context ) error {
@@ -110,7 +110,7 @@ func makeapp() *cli.App {
110110 IsDebug : c .Bool ("debug" ),
111111 IsQuiet : c .Bool ("quiet" ),
112112 ShouldProfile : c .Bool ("profile" ),
113- DumpRaw : c .Bool ("dump-raw-comm " ),
113+ WatchMode : c .Bool ("watch " ),
114114 DurationSeconds : c .Int ("duration" ),
115115 }
116116
Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ type TrainActionArguments struct {
6161 Agentimages []string
6262 IsDebug bool
6363 IsQuiet bool
64+ WatchMode bool
6465 MapName string
6566 ShouldProfile bool
66- DumpRaw bool
6767 DurationSeconds int
6868}
6969
@@ -136,6 +136,7 @@ func TrainAction(args TrainActionArguments) (bool, error) {
136136 arenaServerUUID ,
137137 brokerclient ,
138138 gameDuration ,
139+ args .IsDebug ,
139140 )
140141
141142 for _ , dockerImageName := range args .Agentimages {
@@ -184,8 +185,8 @@ func TrainAction(args TrainActionArguments) (bool, error) {
184185 fmt .Printf (HeadsUpColor ("[headsup] %s\n " ), t .Value )
185186
186187 case arenaserver.EventRawComm :
187- if args .DumpRaw {
188- fmt .Printf (AgentColor ("[agent ] %s\n " ), t .Value )
188+ if args .IsDebug {
189+ fmt .Printf (DebugColor ("[debug from: %s ] %s\n " ), t . From , t .Value )
189190 }
190191
191192 case arenaserver.EventClose :
You can’t perform that action at this time.
0 commit comments