mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-03 03:41:53 +08:00
Check whether connRecord is null before logging it.
This commit is contained in:
parent
b8bd89f88d
commit
13a4743e76
@ -1882,8 +1882,8 @@ Database Database::createDatabase(Reference<IClusterConnectionRecord> connRecord
|
||||
|
||||
TraceEvent("ConnectToDatabase", database->dbId)
|
||||
.detail("Version", FDB_VT_VERSION)
|
||||
.detail("ClusterFile", connRecord->toString())
|
||||
.detail("ConnectionString", connRecord->getConnectionString().toString())
|
||||
.detail("ClusterFile", connRecord ? connRecord->toString() : "None")
|
||||
.detail("ConnectionString", connRecord ? connRecord->getConnectionString().toString() : "None")
|
||||
.detail("ClientLibrary", imageInfo.fileName)
|
||||
.detail("Primary", networkOptions.primaryClient)
|
||||
.detail("Internal", internal)
|
||||
|
Loading…
x
Reference in New Issue
Block a user