configurable socket log count; closes pterodactyl/panel#2659
This commit is contained in:
parent
af9ed4bff1
commit
a74be8f4eb
|
@ -70,6 +70,9 @@ type SystemConfiguration struct {
|
|||
// when it boots and one is not detected.
|
||||
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"`
|
||||
}
|
||||
|
||||
|
|
|
@ -368,7 +368,7 @@ func (h *Handler) HandleInbound(m Message) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
logs, err := h.server.Environment.Readlog(100)
|
||||
logs, err := h.server.Environment.Readlog(config.Get().System.WebsocketLogCount)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user