Commit a37929d1 authored by Luke Champine's avatar Luke Champine

Merge branch 'renter-wal-logger' into 'master'

add logger to renter wal

See merge request NebulousLabs/Sia!3790
parents 886a9604 d3442420
Pipeline #69353513 failed with stages
in 114 minutes and 6 seconds
......@@ -22,7 +22,7 @@ require (
gitlab.com/NebulousLabs/merkletree v0.0.0-20190207030457-bc4a11e31a0d
gitlab.com/NebulousLabs/ratelimit v0.0.0-20180716154200-1308156c2eaf
gitlab.com/NebulousLabs/threadgroup v0.0.0-20180716154133-88a11db9e46c
gitlab.com/NebulousLabs/writeaheadlog v0.0.0-20180919184411-4f883ffbdd01
gitlab.com/NebulousLabs/writeaheadlog v0.0.0-20190703190009-cb822c37bc94
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5
)
......
......@@ -62,6 +62,8 @@ gitlab.com/NebulousLabs/threadgroup v0.0.0-20180716154133-88a11db9e46c h1:psW9YB
gitlab.com/NebulousLabs/threadgroup v0.0.0-20180716154133-88a11db9e46c/go.mod h1:w05nvlkvHlk3Vfc7mcU29Toic1X0BcYUnKoTHS0ea2Y=
gitlab.com/NebulousLabs/writeaheadlog v0.0.0-20180919184411-4f883ffbdd01 h1:LDXYBpbbxNhmRZgcyGagTJMaggP64gYj3E6KTAyrVOU=
gitlab.com/NebulousLabs/writeaheadlog v0.0.0-20180919184411-4f883ffbdd01/go.mod h1:Lhpa9AcbWcYKcc4amZsOHqJdQglnkWrGuUI68XC7U2Q=
gitlab.com/NebulousLabs/writeaheadlog v0.0.0-20190703190009-cb822c37bc94 h1:JJFFedB70d+aO54OFq/m8iOp2MhpA3u8dPMjwJx5J40=
gitlab.com/NebulousLabs/writeaheadlog v0.0.0-20190703190009-cb822c37bc94/go.mod h1:Lhpa9AcbWcYKcc4amZsOHqJdQglnkWrGuUI68XC7U2Q=
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 h1:8dUaAV7K4uHsF56JQWkprecIQKdPHtR9jCHF5nB8uzc=
......
......@@ -253,7 +253,10 @@ func (r *Renter) managedInitPersist() error {
}
// Initialize the writeaheadlog.
txns, wal, err := writeaheadlog.New(filepath.Join(r.persistDir, walFile))
options := writeaheadlog.Options{
Logger: r.log,
}
txns, wal, err := writeaheadlog.NewWithOptions(filepath.Join(r.persistDir, walFile), options)
if err != nil {
return err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment