From d5ed5b446efc25062a2792a077fbdc7a9df572ba Mon Sep 17 00:00:00 2001 From: PoloNX Date: Sun, 3 Mar 2024 17:52:06 +0100 Subject: [PATCH] add log and update issue template --- .github/ISSUE_TEMPLATE/bug_report.md | 4 ++++ source/main.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dedaf55..bdbaea8 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -13,6 +13,10 @@ A clear and concise description of what the bug is. **On which mod** Paste the link of the mod here +**Log file** +Paste the log file here (you can find it at /config/SimpleModDownloader/log.log) +Don't launch the app again before pasting the log file, it will be overwritten + **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' diff --git a/source/main.cpp b/source/main.cpp index 68214a3..b539be1 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -17,8 +17,8 @@ int main(int argc, char* argv[]) { std::filesystem::create_directories("sdmc:/config/SimpleModDownloader"); //Using FILE* because brls::Logger::setLogOutput only takes FILE*, not std::ofstream - // FILE* logFile = fopen("sdmc:/config/SimpleModDownloader/log.log", "w"); - // brls::Logger::setLogOutput(logFile); + FILE* logFile = fopen("sdmc:/config/SimpleModDownloader/log.log", "w"); + brls::Logger::setLogOutput(logFile); { cfg::Config config;