From 92d8dfd00671e826b30985fa671197b0c135a92d Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 10 Oct 2023 12:53:31 -0600 Subject: [PATCH] Made status signal printable --- signal.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/signal.go b/signal.go index 9298a4f..a027963 100644 --- a/signal.go +++ b/signal.go @@ -259,6 +259,9 @@ func (signal StatusSignal) Permission() Tree { StatusType: nil, } } +func (signal StatusSignal) String() string { + return fmt.Sprintf("StatusSignal(%s, %+v)", signal.SignalHeader, signal.Changes) +} func NewStatusSignal(source NodeID, changes Changes) *StatusSignal { return &StatusSignal{ NewSignalHeader(Up),