Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f3aa92cd87 |
@@ -20,7 +20,14 @@ class TailscaleFunnelPlugin(octoprint.plugin.StartupPlugin,
|
|||||||
##~~ StartupPlugin mixin
|
##~~ StartupPlugin mixin
|
||||||
|
|
||||||
def on_after_startup(self):
|
def on_after_startup(self):
|
||||||
self._logger = self._plugin_manager.get_logger("octoprint_tailscale_funnel")
|
# Ensure a valid logger; older OctoPrints don't provide PluginManager.get_logger
|
||||||
|
try:
|
||||||
|
import logging
|
||||||
|
if getattr(self, "_logger", None) is None:
|
||||||
|
self._logger = logging.getLogger("octoprint.plugins.tailscale_funnel")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
if self._logger:
|
||||||
self._logger.info("Tailscale Funnel Plugin started")
|
self._logger.info("Tailscale Funnel Plugin started")
|
||||||
self.tailscale_interface = TailscaleInterface(self._logger)
|
self.tailscale_interface = TailscaleInterface(self._logger)
|
||||||
self.status_monitor = StatusMonitor(self)
|
self.status_monitor = StatusMonitor(self)
|
||||||
|
@@ -14,7 +14,7 @@ plugin_package = "octoprint_tailscale_funnel"
|
|||||||
plugin_name = "OctoPrint-Tailscale-Funnel"
|
plugin_name = "OctoPrint-Tailscale-Funnel"
|
||||||
|
|
||||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
||||||
plugin_version = "0.1.3"
|
plugin_version = "0.1.5"
|
||||||
|
|
||||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||||
# module
|
# module
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"version": "0.1.3"
|
"version": "0.1.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user