Show More
@@ -1,33 +1,33 b'' | |||||
1 | .. _debugging: |
|
1 | .. _debugging: | |
2 |
|
2 | |||
3 | =================== |
|
3 | =================== | |
4 | Debugging Kallithea |
|
4 | Debugging Kallithea | |
5 | =================== |
|
5 | =================== | |
6 |
|
6 | |||
7 | If you encounter problems with Kallithea, here are some instructions |
|
7 | If you encounter problems with Kallithea, here are some instructions | |
8 | on how to debug them. |
|
8 | on how to debug them. | |
9 |
|
9 | |||
10 | .. note:: First make sure you're using the latest version available. |
|
10 | .. note:: First make sure you're using the latest version available. | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | Enable detailed debug |
|
13 | Enable detailed debug | |
14 | --------------------- |
|
14 | --------------------- | |
15 |
|
15 | |||
16 | Kallithea uses the standard Python ``logging`` module to log its output. |
|
16 | Kallithea uses the standard Python ``logging`` module to log its output. | |
17 | By default only loggers with ``INFO`` level are displayed. To enable full output |
|
17 | By default only loggers with ``INFO`` level are displayed. To enable full output | |
18 | change ``level = DEBUG`` for all logging handlers in the currently used .ini file. |
|
18 | change ``level = DEBUG`` for all logging handlers in the currently used .ini file. | |
19 | This change will allow you to see much more detailed output in the log file or |
|
19 | This change will allow you to see much more detailed output in the log file or | |
20 | console. This generally helps a lot to track issues. |
|
20 | console. This generally helps a lot to track issues. | |
21 |
|
21 | |||
22 |
|
22 | |||
23 | Enable interactive debug mode |
|
23 | Enable interactive debug mode | |
24 | ----------------------------- |
|
24 | ----------------------------- | |
25 |
|
25 | |||
26 | To enable interactive debug mode simply comment out ``set debug = false`` in |
|
26 | To enable interactive debug mode simply comment out ``set debug = false`` in | |
27 | the .ini file. This will trigger an interactive debugger each time |
|
27 | the .ini file. This will trigger an interactive debugger each time | |
28 | there is an error in the browser, or send a http link if an error occured in the backend. This |
|
28 | there is an error in the browser, or send a http link if an error occurred in the backend. This | |
29 | is a great tool for fast debugging as you get a handy Python console right |
|
29 | is a great tool for fast debugging as you get a handy Python console right | |
30 | in the web view. |
|
30 | in the web view. | |
31 |
|
31 | |||
32 | .. warning:: NEVER ENABLE THIS ON PRODUCTION! The interactive console |
|
32 | .. warning:: NEVER ENABLE THIS ON PRODUCTION! The interactive console | |
33 | can be a serious security threat to your system. |
|
33 | can be a serious security threat to your system. |
General Comments 0
You need to be logged in to leave comments.
Login now