Log level does not support the "trace" keyword
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Bắt đầu bằng cách xác định phần phân tích và cấu hình cấp độ log của Cloud Foundry CLI, sau đó tái hiện sự khác biệt giữa CF_LOG_LEVEL=debug, CF_LOG_LEVEL=trace và CF_LOG_LEVEL=6 bằng cf create-package hello. Được xem là hoàn thành khi từ khóa trace tạo ra hành vi ghi log giống với cấp độ số 6, với một bài kiểm thử hồi quy bao quát thiết lập này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Please fill out the issue checklist below and provide ALL the requested information.
- I reviewed open and closed github issues that may be related to my problem.
- I tried updating to the latest version of the CF CLI to see if it fixed my problem.
- I attempted to run the command with
CF_TRACE=1to help debug the issue. - I am reporting a bug that others will be able to reproduce.
Describe the bug and the command you saw an issue with
While working on code changes I noticed that I wasn't able to see logs if I set the log level to trace. It turns out that the log level using the trace keyword isn't supported although it has been added to the logger 7 years ago.
What happened
Notice that a debug log is being printed when I use the debug level
$ CF_LOG_LEVEL=debug cf create-package hello
Creating and uploading bits package for app hello in org myorg / space myspace as [email protected]...
DEBU[0000] convert to translatable error err="actionerror.ApplicationNotFoundError{GUID:\"\", Name:\"hello\"}"
App 'hello' not found.
FAILED
but that if I set the log level to trace the debug printout does not appear.
$ CF_LOG_LEVEL=trace cf create-package hello
Creating and uploading bits package for app hello in org myorg / space myspace as [email protected]...
App 'hello' not found.
FAILED
however, if I set the debug level to 6, which corresponds to trace it does show:
$ CF_LOG_LEVEL=6 cf create-package hello
Creating and uploading bits package for app hello in org myorg / space myspace as [email protected]...
DEBU[0000] convert to translatable error err="actionerror.ApplicationNotFoundError{GUID:\"\", Name:\"hello\"}"
App 'hello' not found.
FAILED
Expected behavior
I should be able to use CF_LOG_LEVEL=trace
Exact Steps To Reproduce
See above.
- Ngôn ngữ chính
- Go
- Star
- 1.9k
- Fork
- 989
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudfoundry/cli
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
cloudfoundry/cli#3866 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
cloudfoundry/cli#3863 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
cloudfoundry/cli#3851 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add zsh shell completionĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
cloudfoundry/cli#3794 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
cloudfoundry/cli#3787 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudfoundry/cli
Issue tương tự
-
[correctness][missing-coverage][sort] Strict uniqueness checks lack numeric-key equivalence coverageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 69/100
SpecterOps/Janus#6 · 1 bình luận ·
-
Service process inherits the caller's cwd at first use, holding that folder open on Windows (EBUSY)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[docs] Media elements cannot load from a custom protocol (video/audio report MEDIA_ERR_SRC_NOT_SUPPORTED)Có thể đã có người làm @vst93 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày