{"action":"opened","issue":{"url":"https://api.github.com/repos/tkf/emacs-jedi/issues/189","labels_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/189/comments","events_url":"https://api.github.com/repos/tkf/emacs-jedi/issues/189/events","html_url":"https://github.com/tkf/emacs-jedi/issues/189","id":54124118,"number":189,"title":"Print statements in jediepcserver.py breaks epc:start-server","user":{"login":"madhavan020985","id":4812767,"avatar_url":"https://avatars.githubusercontent.com/u/4812767?v=3","gravatar_id":"","url":"https://api.github.com/users/madhavan020985","html_url":"https://github.com/madhavan020985","followers_url":"https://api.github.com/users/madhavan020985/followers","following_url":"https://api.github.com/users/madhavan020985/following{/other_user}","gists_url":"https://api.github.com/users/madhavan020985/gists{/gist_id}","starred_url":"https://api.github.com/users/madhavan020985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhavan020985/subscriptions","organizations_url":"https://api.github.com/users/madhavan020985/orgs","repos_url":"https://api.github.com/users/madhavan020985/repos","events_url":"https://api.github.com/users/madhavan020985/events{/privacy}","received_events_url":"https://api.github.com/users/madhavan020985/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-12T23:45:09Z","updated_at":"2015-01-12T23:45:09Z","closed_at":null,"body":"print statements for logging in jediepcserver.py breaks the emacs setup. By default, once emacs calls epc:start-server, it expects a string that contains port number - \r\n````elisp\r\n(string-match \"^[ \\n\\r]*[0-9]+[ \\n\\r]*$\" port-str)\r\n````\r\nBut, when i put prints in my python module, the string read from process buffer is not of a familiar pattern to emacs plugin & it barfs, \r\n````elisp\r\n(error \"Server may raise an error. \\\r\nUse \\\"M-x epc:pop-to-last-server-process-buffer RET\\\" \\\r\nto see full traceback:\\n%s\" port-str)\r\n````\r\nhere port-str is replaced with my log print msgs.... \r\nCan't there be a better mechanism (or) status code from the server code to monitor its status, than looking for a pattern in the log message?"}}