Skip to content

Commit cbd296b

Browse files
authored
chore: edit issue template to ask users to include logs (#1492)
1 parent d944e6e commit cbd296b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,18 @@ A clear and concise description of what you expected to happen.
2222
- OS: [e.g. Mac, Ubuntu]
2323
- python-binance version
2424

25-
**Logs or Additional context**
25+
**Logs**
26+
Please set logging to debug and paste any logs here, or upload `debug.log` file to the issue.
27+
```python
28+
import logging
29+
# This will log to both console and file
30+
logging.basicConfig(level=logging.DEBUG,format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
31+
handlers=[
32+
logging.FileHandler('debug.log'),
33+
logging.StreamHandler()
34+
]
35+
)
36+
```
37+
38+
**Additional context**
2639
Add any other context about the problem here.

0 commit comments

Comments
 (0)