mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
etcd: enable optional log file for embedded etcd log output
In this commit we add an extra config for enabling logging to an external file when using embedded etcd. This can be useful when running integration tests to see more details about etcd related issues.
This commit is contained in:
@@ -92,7 +92,7 @@ func (db *DB) Init(ctx context.Context, dbPath string) error {
|
||||
if db.Backend == EtcdBackend && db.Etcd.Embedded {
|
||||
cfg, _, err := kvdb.StartEtcdTestBackend(
|
||||
dbPath, db.Etcd.EmbeddedClientPort,
|
||||
db.Etcd.EmbeddedPeerPort,
|
||||
db.Etcd.EmbeddedPeerPort, db.Etcd.EmbeddedLogFile,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user