| @@ -1,19 +1,21 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | |
| 5 | -// 0 - none | |
| 5 | +// 0 - none. | |
| 6 | 6 | define( 'GEDEBUG_NONE', 0 ); |
| 7 | 7 | |
| 8 | -// 1 - call logging only | |
| 8 | +// 1 - call logging only. | |
| 9 | 9 | define( 'GEDEBUG_CALL', 1 ); |
| 10 | 10 | |
| 11 | -// 2 - calls, and responses | |
| 11 | +// 2 - calls, and responses. | |
| 12 | 12 | define( 'GEDEBUG_RESP', 2 ); |
| 13 | 13 | |
| 14 | -// Selected debug level | |
| 15 | -define( 'GITHUB_API_LEVEL', GEDEBUG_NONE ); | |
| 14 | +// Selected debug level. | |
| 15 | +if ( ! defined( 'GITHUB_API_LEVEL' ) ) { | |
| 16 | + define( 'GITHUB_API_LEVEL', GEDEBUG_NONE ); | |
| 17 | +} | |
| 16 | 18 | |
| 17 | 19 | |
| 18 | 20 | /** |
| 19 | 21 | * This class contains all the functions that actually retrieve information from the GitHub API |