Skip to content

Commit 22bf537

Browse files
author
j-c-cook
committed
Update logger help statement
1 parent dc75109 commit 22bf537

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

can/logger.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,9 @@ def main() -> None:
194194
dest="file_size",
195195
type=int,
196196
help="Maximum file size in bytes (or for the case of blf, maximum "
197-
"buffer size before compression and flush to file). Rotate log "
198-
"file when size threshold is reached.",
197+
"buffer size before compression and flush to file). Rotate log file "
198+
"when size threshold is reached. (If file_time is also given, then the "
199+
"first of the two constraints to occur is what causes the rollover.)",
199200
default=0,
200201
)
201202

@@ -204,7 +205,9 @@ def main() -> None:
204205
"--file_time",
205206
dest="file_time",
206207
type=int,
207-
help="Maximum period in seconds before rotating log file.",
208+
help="Maximum period in seconds before rotating log file. (If file_size"
209+
"is also given, then the first of the two constraints to occur is"
210+
"what causes the rollover.)",
208211
default=0,
209212
)
210213

0 commit comments

Comments
 (0)