Prevent bungee output breaking my CLI output...

Theres enough magic ANSI codes in here to kill a horse... this also causes logging ouput to get truncated
This commit is contained in:
Dane Everitt 2020-09-03 21:18:55 -07:00
parent 70afbbfc68
commit 490f874128
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -8,6 +8,7 @@ import (
"github.com/pterodactyl/wings/environment" "github.com/pterodactyl/wings/environment"
"github.com/pterodactyl/wings/events" "github.com/pterodactyl/wings/events"
"regexp" "regexp"
"strconv"
) )
// Adds all of the internal event listeners we want to use for a server. // Adds all of the internal event listeners we want to use for a server.
@ -78,7 +79,7 @@ func (s *Server) onConsoleOutput(data string) {
s.Log().WithFields(log.Fields{ s.Log().WithFields(log.Fields{
"match": l.String(), "match": l.String(),
"against": data, "against": strconv.QuoteToASCII(data),
}).Debug("detected server in running state based on console line output") }).Debug("detected server in running state based on console line output")
// If the specific line of output is one that would mark the server as started, // If the specific line of output is one that would mark the server as started,