configurable socket log count; closes pterodactyl/panel#2659
This commit is contained in:
@@ -70,6 +70,9 @@ type SystemConfiguration struct {
|
|||||||
// when it boots and one is not detected.
|
// when it boots and one is not detected.
|
||||||
EnableLogRotate bool `default:"true" yaml:"enable_log_rotate"`
|
EnableLogRotate bool `default:"true" yaml:"enable_log_rotate"`
|
||||||
|
|
||||||
|
// The number of lines to send when a server connects to the websocket.
|
||||||
|
WebsocketLogCount int `default:"150" yaml:"websocket_log_count"`
|
||||||
|
|
||||||
Sftp SftpConfiguration `yaml:"sftp"`
|
Sftp SftpConfiguration `yaml:"sftp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ func (h *Handler) HandleInbound(m Message) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
logs, err := h.server.Environment.Readlog(100)
|
logs, err := h.server.Environment.Readlog(config.Get().System.WebsocketLogCount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user