Skip to content

Commit 4952829

Browse files
yacovmGerrit Code Review
authored and
Gerrit Code Review
committed
Merge "Address CR comments for FAB-17000"
2 parents 2332eea + 649d563 commit 4952829

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

internal/peer/node/start.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,13 @@ func serve(args []string) error {
285285
logger.Panicf("Failed to serialize the signing identity: %v", err)
286286
}
287287

288-
// Log warnings if some certificate (e-cert, TLS certs) expires soon
288+
expirationLogger := flogging.MustGetLogger("certmonitor")
289289
crypto.TrackExpiration(
290290
serverConfig.SecOpts.UseTLS,
291291
serverConfig.SecOpts.Certificate,
292292
cs.GetClientCertificate().Certificate,
293293
signingIdentityBytes,
294-
logger.Warnf, // This can be used to piggyback a metric event in the future
294+
expirationLogger.Warnf, // This can be used to piggyback a metric event in the future
295295
time.Now(),
296296
time.AfterFunc)
297297

orderer/common/server/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,13 @@ func Main() {
163163
logger.Panicf("Failed serializing signing identity: %v", err)
164164
}
165165

166+
expirationLogger := flogging.MustGetLogger("certmonitor")
166167
crypto.TrackExpiration(
167168
serverConfig.SecOpts.UseTLS,
168169
serverConfig.SecOpts.Certificate,
169170
[][]byte{clusterClientConfig.SecOpts.Certificate},
170171
identityBytes,
171-
logger.Warnf, // This can be used to piggyback a metric event in the future
172+
expirationLogger.Warnf, // This can be used to piggyback a metric event in the future
172173
time.Now(),
173174
time.AfterFunc)
174175

0 commit comments

Comments
 (0)