Skip to content

Commit 5428c22

Browse files
author
Piotr
committed
some readme updates
1 parent dd9a1c0 commit 5428c22

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Flags:
149149
-n, --no-analytics Opt-out from sending anonymous analytical data that helps improve Logdy
150150
-u, --no-updates Opt-out from checking updates on program startup
151151
-p, --port string Port on which the Web UI will be served (default "8080")
152+
--rotate-file-size string If set, how big the file can grow before being rotated, used K/M/G to describe the size, example: 15M -> 15 megabytes (env: LOGDY_ROTATE_FILE_SIZE)
152153
--ui-ip string Bind Web UI server to a specific IP address (default "127.0.0.1")
153154
--ui-pass string Password that will be used to authenticate in the UI
154155
-v, --verbose Verbose logs

http/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package http
22

33
import (
4+
"fmt"
45
"sync"
56
"time"
67

@@ -353,7 +354,7 @@ func InitializeClients(config Config) *ClientsStruct {
353354
bts, err = utils.ParseRotateSize(config.AppendToFileRotateMaxSize)
354355

355356
if err != nil {
356-
panic(err)
357+
panic(fmt.Errorf("file rotate size parse error: %w", err))
357358
}
358359
}
359360

0 commit comments

Comments
 (0)