Skip to content

Commit

Permalink
Fix debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
markwal committed Jan 4, 2019
1 parent 47203b8 commit 32f728b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions octoprint_polarcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,15 +1054,14 @@ def _on_jog_printer(self, data, *args, **kwargs):
# The data object should have a jogPrinter field which containts
# the JSON object that the Octopi API is expecting
jog_data = data['jogPrinter']
self._logger.warn("Jog command: {}".format(repr(jog_data)))
self._logger.debug("Jog command: {}".format(repr(jog_data)))
api_command = "printhead"
if jog_data['command'] == 'extrude':
api_command = "tool"

client = self._ensure_octoprint_client()
r = client.post_json("/api/printer/" + api_command, data['jogPrinter'])
r.raise_for_status()
self._logger.debug("system/commands result {}: {}".format(r.status_code, r.content))


#~~ setVersion
Expand Down

0 comments on commit 32f728b

Please sign in to comment.