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