improve debug logging, fix stringer interface, debuglog events sent, fix debuglogging affecting the actual values.

This commit is contained in:
fiatjaf
2023-04-11 11:02:35 -03:00
parent 7f64f2f65e
commit 32768b1a5b
5 changed files with 32 additions and 18 deletions

View File

@@ -43,10 +43,7 @@ const (
)
// Event Stringer interface, just returns the raw JSON as a string
func (evt *Event) String() string {
if evt == nil {
return "null"
}
func (evt Event) String() string {
j, _ := json.Marshal(evt)
return string(j)
}