Skip to content

Commit

Permalink
Merge pull request #11 from drdelaney/dev
Browse files Browse the repository at this point in the history
Fixing debug notifications
  • Loading branch information
drdelaney committed Nov 24, 2018
2 parents c572645 + 0cb0039 commit b9dbe1d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dist
*.egg*
.DS_Store
*.zip
*~
9 changes: 6 additions & 3 deletions octoprint_RepetierInformer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def sendInformer(self,header,preview,message,image=inform_info):

# Return if not enabled
if not self._settings.get(['enabled']):
self._logger.info("Not enabled, will not send.")
# Log debug
#self._logger.info("Not enabled, will not send.")
return

# Add the hostname if defined
Expand Down Expand Up @@ -217,7 +218,8 @@ def on_after_startup(self):
def on_event(self, event, payload):
# Return if not enabled
if not self._settings.get(['enabled']):
self._logger.info("Not enabled, will not send.")
# Log debug
#self._logger.info("Not enabled, will not send.")
return

# Handle events
Expand Down Expand Up @@ -289,7 +291,8 @@ def on_event(self, event, payload):
def hook_gcode_pause(self, comm_instance, phase, cmd, cmd_type, gcode, *args, **kwargs):
# Return if not enabled
if not self._settings.get(['enabled']):
self._logger.info("Not enabled, will not send.")
# Log debug
#self._logger.info("Not enabled, will not send.")
return

# Handle pause/resume gcodes
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
plugin_name = "Repetier-Informer for OctoPrint"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.1.5"
plugin_version = "0.1.6"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit b9dbe1d

Please sign in to comment.