2010-06-06 4 views
0

아파치와 함께 merurial 리포 지 토리를 제공하려고하는데, 나는 repo를 push하려고 할 때 아파치 error.log에서 이것을 보게됩니다. 클라이언트 측에서 나는 500 에러를 얻는다.Mercurial repo로 푸시 할 때의 DeprecationWarning

어떻게하면 갈 수 있습니까?

[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] /var/lib/python-support/python2.6/mercurial/hgweb/common.py:24: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] self.message = message 
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] /var/lib/python-support/python2.6/mercurial/hgweb/hgweb_mod.py:104: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] if not inst.message: 
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] /var/lib/python-support/python2.6/mercurial/hgweb/hgweb_mod.py:106: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 
[Sun Jun 06 14:43:25 2010] [error] [client 192.168.1.8] return '0\\n%s\\n' % inst.message, 

답변

0

비추천 경고는 붉은 청어입니다. 그것은 단지 서버 코드가 궁극적으로 지원되지 않는 방식으로 파이썬 예외에 액세스했다는 것을 알려주는 것입니다. 당신이 정말로 알고 싶은 것은 처음부터 예외가 제기 된 것입니다. (즉, 500 오류와 함께 오류 메시지가 있었나요?)

+0

아니, 이건 내가 내 콘솔에 표시되는 모든입니다 : 이 검색을 http://hg.corp.localproject.com/hgwebdir.cgi/localproject을 밀어 변경 사항 : abort : HTTP 오류 500 : 내부 서버 오류 –

+0

그리고 더 이상 사용되지 않는 경고 뒤에 서버 로그에 다른 것이 없습니까? 오류 코드와 메시지를 반환하려고하는 것처럼 보입니다. 서버 출력 (클라이언트 출력)에 표시 될 것으로 예상됩니다. 이 경우 wireshark를 사용하여 서버 응답을 스니핑하거나 hgweb_mod.py 줄 106을 일시적으로 편집하고 return 문 앞에 raise raise #를 삽입하여 예외 메시지를 발견하고 다시 시도 할 때 서버 로그를 확인하는 것이 좋습니다. –

+0

다른 모든 것이 실패하면, Mercurial 메일 링리스트에있는 누군가가 전에이 문제를 보았을 것입니다. http://selenic.com/mailman/listinfo/mercurial –

관련 문제