Skip to content

Commit

Permalink
Merge pull request #1430 from alrs/console-err
Browse files Browse the repository at this point in the history
client/console: fix dropped error
  • Loading branch information
rkervella authored Oct 11, 2023
2 parents 5d40d41 + 0834b72 commit a220828
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func StartClient(con *SliverConsoleClient, rpc rpcpb.SliverRPCClient, serverCmds
consoleLog := getConsoleLogFile()
consoleLogStream, err := con.ClientLogStream("json")
if err != nil {
log.Printf("Could not get client log stream: %s", err)
log.Printf("Could not get client json log stream: %s", err)
}
con.setupLogger(consoleLog, consoleLogStream)
defer consoleLog.Close()
Expand All @@ -202,6 +202,9 @@ func StartClient(con *SliverConsoleClient, rpc rpcpb.SliverRPCClient, serverCmds
defer asciicastLog.Close()

asciicastStream, err := con.ClientLogStream("asciicast")
if err != nil {
log.Printf("Could not get client asciicast log stream: %s", err)
}
con.setupAsciicastRecord(asciicastLog, asciicastStream)
}

Expand Down

0 comments on commit a220828

Please sign in to comment.