@@ -423,7 +423,7 @@ func getTLSConfig(cfg *Config) (*tls.Config, *credentials.TransportCredentials,
423423 // If the certificate expired or it was outdated, delete it and the TLS
424424 // key and generate a new pair.
425425 if time .Now ().After (parsedCert .NotAfter ) {
426- log . Info ("TLS certificate is expired or outdated, " +
426+ infof ("TLS certificate is expired or outdated, " +
427427 "removing old file then generating a new one" )
428428
429429 err := os .Remove (cfg .TLSCertPath )
@@ -464,7 +464,7 @@ func loadCertWithCreate(cfg *Config) (tls.Certificate, *x509.Certificate,
464464 if ! lnrpc .FileExists (cfg .TLSCertPath ) &&
465465 ! lnrpc .FileExists (cfg .TLSKeyPath ) {
466466
467- log . Infof ("Generating TLS certificates..." )
467+ infof ("Generating TLS certificates..." )
468468 certBytes , keyBytes , err := cert .GenCertPair (
469469 defaultSelfSignedOrganization , cfg .TLSExtraIPs ,
470470 cfg .TLSExtraDomains , cfg .TLSDisableAutofill ,
@@ -481,7 +481,7 @@ func loadCertWithCreate(cfg *Config) (tls.Certificate, *x509.Certificate,
481481 return tls.Certificate {}, nil , err
482482 }
483483
484- log . Infof ("Done generating TLS certificates" )
484+ infof ("Done generating TLS certificates" )
485485 }
486486
487487 return cert .LoadCert (cfg .TLSCertPath , cfg .TLSKeyPath )
0 commit comments