From 10ad22a97a5f579b602c310e0017416f9f6f9642 Mon Sep 17 00:00:00 2001 From: Pablo Date: Mon, 2 Dec 2024 00:11:50 +0100 Subject: [PATCH] chore: edit issue template to ask users to include logs --- .github/ISSUE_TEMPLATE/bug_report.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index a3b222b21..ce4fa0ad7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -22,5 +22,18 @@ A clear and concise description of what you expected to happen. - OS: [e.g. Mac, Ubuntu] - python-binance version -**Logs or Additional context** +**Logs** +Please set logging to debug and paste any logs here, or upload `debug.log` file to the issue. +```python +import logging +# This will log to both console and file +logging.basicConfig(level=logging.DEBUG,format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', +handlers=[ +logging.FileHandler('debug.log'), +logging.StreamHandler() +] +) +``` + +**Additional context** Add any other context about the problem here.