From 5cd4c8265cf5ccbc5d2ccf3ba8142513589d4722 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 19 Nov 2013 11:41:31 -0600 Subject: [PATCH] Add subsystem to RPC cert generation log messages. --- rpcserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index 7ac6fded..bcada121 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -324,7 +324,7 @@ func (s *rpcServer) Stop() error { // genkey generates a key/cert pair to the paths provided. // TODO(oga) wrap errors with fmt.Errorf for more context? func genKey(key, cert string) error { - log.Infof("Generating tls certificates...") + log.Infof("RPCS: Generating TLS certificates...") priv, err := ecdsa.GenerateKey(elliptic.P521(), rand.Reader) if err != nil { return err @@ -399,7 +399,7 @@ func genKey(key, cert string) error { pem.Encode(keyOut, &pem.Block{Type: "EC PRIVATE KEY", Bytes: keybytes}) keyOut.Close() - log.Infof("Done generating tls certificates") + log.Infof("RPCS: Done generating tls certificates") return nil }