You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.go
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ const (
59
59
defaultLogLevel="info"
60
60
defaultLogDirname="logs"
61
61
defaultLogFilename="lnd.log"
62
+
defaultLogCompressor=build.Gzip
62
63
defaultRPCPort=10009
63
64
defaultRESTPort=8080
64
65
defaultPeerPort=9735
@@ -315,6 +316,7 @@ type Config struct {
315
316
ReadMacPathstring`long:"readonlymacaroonpath" description:"Path to write the read-only macaroon for lnd's RPC and REST services if it doesn't exist"`
316
317
InvoiceMacPathstring`long:"invoicemacaroonpath" description:"Path to the invoice-only macaroon for lnd's RPC and REST services if it doesn't exist"`
317
318
LogDirstring`long:"logdir" description:"Directory to log output."`
319
+
LogCompressorstring`long:"logcompressor" description:"Compression algorithm to use when rotating logs." choice:"gzip" choice:"zstd"`
318
320
MaxLogFilesint`long:"maxlogfiles" description:"Maximum logfiles to keep (0 for no rotation)"`
319
321
MaxLogFileSizeint`long:"maxlogfilesize" description:"Maximum logfile size in MB"`
320
322
AcceptorTimeout time.Duration`long:"acceptortimeout" description:"Time after which an RPCAcceptor will time out and return false if it hasn't yet received a response"`
0 commit comments