expanded logging to router_address.go + gofumpt adjustment

This commit is contained in:
Haris Khan
2024-10-18 13:22:36 -04:00
parent 3bca467f28
commit 2191c40ac6
20 changed files with 81 additions and 31 deletions

View File

@@ -29,6 +29,7 @@ payload :: data
import (
"errors"
"github.com/go-i2p/go-i2p/lib/util/logger"
"github.com/sirupsen/logrus"
@@ -327,7 +328,7 @@ func NewKeyCertificate(bytes []byte) (key_certificate *KeyCertificate, remainder
// KeyCertificateFromCertificate returns a *KeyCertificate from a *Certificate.
func KeyCertificateFromCertificate(certificate Certificate) *KeyCertificate {
log.Debug("Creating KeyCertificate from Certificate")
//k, _, _ := NewKeyCertificate(certificate.RawBytes())
// k, _, _ := NewKeyCertificate(certificate.RawBytes())
k, _, err := NewKeyCertificate(certificate.RawBytes())
if err != nil {
log.WithError(err).Error("Failed to create KeyCertificate from Certificate")