Fixed a bug.
This commit is contained in:
+1
-2
@@ -35,9 +35,8 @@ class SystemdNotifier
|
||||
@enable_heartbeat
|
||||
end
|
||||
|
||||
def notify(message)
|
||||
def self.notify(message)
|
||||
return unless @enable_heartbeat
|
||||
|
||||
begin
|
||||
@socket.send(message, 0)
|
||||
MethodExecutor.record("debug", "heartbeat", "Heartbeat sent: #{message}")
|
||||
|
||||
Reference in New Issue
Block a user