DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead

DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
This commit is contained in:
MirceaDan committed 2018-12-01 15:07:04 -08:00
1 parent f72f948744
commit f5c8b04958
26 files changed
+109 -106

No files matched your search

+1 -1
View File
@@ -273,7 +273,7 @@ class PiSupportPlugin(octoprint.plugin.EnvironmentDetectionPlugin,
message += "\n!!! FREQUENCY CAPPING DUE TO OVERHEATING REPORTED !!! Improve cooling on the Pi's " \
"CPU and GPU."
self._logger.warn(message)
self._logger.warning(message)
self._plugin_manager.send_plugin_message(self._identifier, dict(type="throttle_state",
state=self._throttle_state.as_dict()))