디버그의 기능을 추가합니다.#1947
Merged
5 commits merged intoAug 30, 2016
Merged
Conversation
|
로그를 남기는 파일명을 debugPrint() 메시지와 분리하면 좋을 것 같습니다. |
Contributor
Author
|
@bnu 분리하면.. 사용자 측면에서 너무 불편한 단점이 있던데.. 이 부분은 어떻게 보안할 수 있는 방법이 있을까요? |
|
@bjrambo 음. 불편한가요. |
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
라이믹스 만큼은 안되지만, 디버그 기능을 개선하고 에러로그기능을 추가합니다.
기존의 #1872 에서 @kijin 님의 의견에 따라 기존의 error로그 부분에 치명적인 에러도 기록할 수 있도록 개선하고
현재의 가독성이 떨어지는 디버그 항목을 좀 더 개선하여 가독성을 유리하도록 하는것이 목표입니다.
디버그 기능의 원활한 사용을 위해서는 다음과 같은 추가작업이 필요합니다.
xe/config/config.user.inc.php파일에서
define('__ERROR_LOG__', 1);을 추가해야 하며,
__DEBUG_PROTECT__, 의 설정에 따라 1일경우__DEBUG_PROTECT_IP__을 정상적으로 재대로 세팅을 하고, 지정된 아이피에서만 출력되도록 설정되어있습니다.더불어 이 기능이 어디서 어떻게 실행되오는 과정(stack trace)기능을 추가합니다.
stack trace기능의 경우 현재 XE의 필수 설치요건의 PHP버전의 최소값보다 약간 높은 버전에서 사용이 가능한debug_backtrace함수를 이용함으로 이기능은 PHP5.3.6 이상에서만 가능합니다...PHP 5.3.6 이하의 경우
debug_backtrace내용을 제외한 기능을 추가하는것으로 목표를 잡고 작업을 진행하도록 하겠습니다.