Option for more verbose logging - at least the filename loaded, possibly more.

Đang mở
#483 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Start by tracing how python-dotenv currently logs loaded files and how environment-variable options are handled. Define the supported verbose output and its security boundaries, then add coverage for selecting that behavior through an environment variable and confirming the loaded filename is reported.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The current logging makes sense: for security the values aren't output by default.

When I'm working on a new project, I'm configuring (initially misconfiguring stuff), I'd like to know the filename that was loaded and ideally the keys and values.

At the moment we get a line number, but because I'm working on a complicated project with a bunch of .env files, I'm left guessing which file is open.

I'd like to be able to set some environment variable and get more info, it's understandable if this doesn't show the keys and values, though at least the filename, and they key would be nice.

Note: I don't have control over where the code is called from so setting from an environment variable would be nice (in this case it's pipenv, as well as a django app I'm working on)

Ngôn ngữ chính
Python
Star
8.9k
Fork
581
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của theskumar/python-dotenv

Tất cả issue của theskumar/python-dotenv

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.