Skip to content

Commit 0915972

Browse files
committed
Refactor bug report template for clarity and update log file instructions in Program.cs
1 parent ac0f2cd commit 0915972

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ body:
99
value: |
1010
**Thank you!** Please attach log files from:
1111
12-
**Application Logs:**
13-
- `%LOCALAPPDATA%\Temp\ImageToPose\logs`
14-
- e.g. `C:\Users\<your_name>\AppData\Local\Temp\ImageToPose\logs`
15-
16-
**AI Diagnostics Logs (if the issue involves AI/model errors):**
17-
- `%LOCALAPPDATA%\ImageToPose\logs\ai_diagnostics`
18-
- e.g. `C:\Users\<your_name>\AppData\Local\ImageToPose\logs\ai_diagnostics\<date>\<timestamp>.json`
12+
**All Logs (Application + AI Diagnostics):**
13+
- `%LOCALAPPDATA%\ImageToPose\logs`
14+
- e.g. `C:\Users\<your_name>\AppData\Local\ImageToPose\logs`
15+
- Application logs: `app-*.log`
16+
- AI diagnostics: `ai_diagnostics\<date>\<timestamp>.json`
1917
2018
👉 Drag & drop the file(s) into the issue editor **below** before submitting.
2119
If files are large, please ZIP them first.
@@ -27,10 +25,8 @@ body:
2725
options:
2826
- label: I searched existing issues and couldn't find this.
2927
required: true
30-
- label: I **attached** at least one application log file from the folder above.
28+
- label: I **attached** at least one log file from the folder above.
3129
required: true
32-
- label: I **attached** AI diagnostics logs (if the issue involves model/AI errors).
33-
required: false
3430

3531
- type: input
3632
id: app-version
@@ -67,11 +63,11 @@ body:
6763
- type: textarea
6864
id: log-snippet
6965
attributes:
70-
label: Optional — paste last ~100 lines of the application log
66+
label: Optional — paste last ~100 lines of the log
7167
description: This helps even if the attachment fails. For AI diagnostics, you can paste the full JSON content.
7268
render: text
7369
placeholder: |
74-
(Open the latest .log or .json in a text editor and copy the tail here)
70+
(Open the latest .log or .json in a text editor and copy here)
7571
validations:
7672
required: false
7773

src/DesktopApp/ImageToPose.Desktop/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public static AppBuilder BuildAvaloniaApp()
4242

4343
private static void ConfigureSerilog()
4444
{
45-
var tempPath = Path.GetTempPath();
46-
var logPath = Path.Combine(tempPath, "ImageToPose", "logs", "app-.log");
45+
var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
46+
var logPath = Path.Combine(localAppData, "ImageToPose", "logs", "app-.log");
4747

4848
Log.Logger = new LoggerConfiguration()
4949
.MinimumLevel.Debug()

0 commit comments

Comments
 (0)