Merge pull request #4332 from cfromknecht/dry-run-migration-logs

channeldb: dry run migration logs
This commit is contained in:
Olaoluwa Osuntokun 2020-05-28 15:39:55 -07:00 committed by GitHub
commit c5e62ba9b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -29,7 +29,7 @@ const (
var (
// ErrDryRunMigrationOK signals that a migration executed successful,
// but we intentionally did not commit the result.
ErrDryRunMigrationOK = errors.New("Dry run migration successful")
ErrDryRunMigrationOK = errors.New("dry run migration successful")
)
// migration is a function which takes a prior outdated version of the database

2
lnd.go

@ -270,7 +270,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {
)
switch {
case err == channeldb.ErrDryRunMigrationOK:
ltndLog.Info("%v, exiting", err)
ltndLog.Infof("%v, exiting", err)
return nil
case err != nil: