Skip to content

Commit

Permalink
dial.go/listener.go: Updated ErrorLog documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Oct 15, 2024
1 parent de6f00c commit 1f2f7c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions minecraft/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
// Dialer allows specifying specific settings for connection to a Minecraft server.
// The zero value of Dialer is used for the package level Dial function.
type Dialer struct {
// ErrorLog is a log.Logger that errors that occur during packet handling of servers are written to. By
// default, ErrorLog is set to one equal to the global logger.
// ErrorLog is a log.Logger that errors that occur during packet handling of
// servers are written to. By default, errors are not logged.
ErrorLog *slog.Logger

// ClientData is the client data used to login to the server with. It includes fields such as the skin,
Expand Down
4 changes: 2 additions & 2 deletions minecraft/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

// ListenConfig holds settings that may be edited to change behaviour of a Listener.
type ListenConfig struct {
// ErrorLog is a log.Logger that errors that occur during packet handling of clients are written to. By
// default, ErrorLog is set to one equal to the global logger.
// ErrorLog is a log.Logger that errors that occur during packet handling of
// clients are written to. By default, errors are not logged.
ErrorLog *slog.Logger

// AuthenticationDisabled specifies if authentication of players that join is disabled. If set to true, no
Expand Down

0 comments on commit 1f2f7c7

Please sign in to comment.