File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,25 @@ menu:
20
20
21
21
** NOTE:** When asking for support, it may be a good idea to have the following available so that the person helping has all the info they need:
22
22
23
- 1 . Your ` app.ini ` (with any sensitive data scrubbed as necessary)
24
- 2 . The ` gitea.log ` (and any other appropriate log files for the situation)
25
- * e.g. If the error is related to the database, the ` xorm.log ` might be helpful
26
- 3 . Any error messages you are seeing
23
+ 1 . Your ` app.ini ` (with any sensitive data scrubbed as necessary).
24
+ 2 . The Gitea logs, and any other appropriate log files for the situation.
25
+ * The logs may be outputted to console by default. If you need to collect logs from files,
26
+ you could copy the following config into your ` app.ini ` (remove all other ` [log] ` sections),
27
+ then you can find the ` gitea.log ` in Gitea's log directory (default: ` %(GITEA_WORK_DIR)/log ` ).
28
+ ```
29
+ ; To show all SQLs, you could also set LOG_SQL=true in [database] section
30
+ [log]
31
+ LEVEL=debug
32
+ MODE=console,file
33
+ ROUTER=console,file
34
+ XORM=console,file
35
+ ENABLE_XORM_LOG=true
36
+ [log.file.router]
37
+ FILE_NAME=gitea.log
38
+ [log.file.xorm]
39
+ FILE_NAME=gitea.log
40
+ ```
41
+ 3. Any error messages you are seeing.
27
42
4. When possible, try to replicate the issue on [try.gitea.io](https://try.gitea.io) and include steps so that others can reproduce the issue.
28
43
* This will greatly improve the chance that the root of the issue can be quickly discovered and resolved.
29
44
5. If you meet slow/hanging/deadlock problems, please report the stack trace when the problem occurs:
You can’t perform that action at this time.
0 commit comments