a pluggable logging interface and more debug logging.

This commit is contained in:
fiatjaf
2023-04-11 00:28:52 -03:00
parent f918809e21
commit e103c99bb8
3 changed files with 22 additions and 5 deletions

View File

@@ -68,6 +68,8 @@ func (sub *Subscription) Fire() error {
message = append(message, filter)
}
DebugLogger.Printf("{%s} REQ: %v", sub.Relay.URL, message)
err := sub.conn.WriteJSON(message)
if err != nil {
sub.cancel()