Skip to content

Commit 4fe4a2b

Browse files
committed
Added log level none
Ticket: ENT-13305 Signed-off-by: Victor Moene <victor.moene@northern.tech>
1 parent 1efeec4 commit 4fe4a2b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

cf_remote/log.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
levels = {"CRITICAL": 50, "ERROR": 40, "WARNING": 30, "INFO": 20, "DEBUG": 10}
1+
levels = {
2+
"NONE": 60,
3+
"CRITICAL": 50,
4+
"ERROR": 40,
5+
"WARNING": 30,
6+
"INFO": 20,
7+
"DEBUG": 10,
8+
}
29

310
level = levels["WARNING"]
411

cf_remote/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _get_arg_parser():
3434

3535
ap.add_argument(
3636
"--log-level",
37-
help="Specify level of logging: DEBUG, INFO, WARNING, ERROR, or CRITICAL",
37+
help="Specify level of logging: NONE, DEBUG, INFO, WARNING, ERROR, or CRITICAL",
3838
type=str,
3939
default="WARNING",
4040
)

0 commit comments

Comments
 (0)