Merge pull request #4332 from cfromknecht/dry-run-migration-logs
channeldb: dry run migration logs
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ const (
|
|||||||
var (
|
var (
|
||||||
// ErrDryRunMigrationOK signals that a migration executed successful,
|
// ErrDryRunMigrationOK signals that a migration executed successful,
|
||||||
// but we intentionally did not commit the result.
|
// 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
|
// migration is a function which takes a prior outdated version of the database
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {
|
|||||||
)
|
)
|
||||||
switch {
|
switch {
|
||||||
case err == channeldb.ErrDryRunMigrationOK:
|
case err == channeldb.ErrDryRunMigrationOK:
|
||||||
ltndLog.Info("%v, exiting", err)
|
ltndLog.Infof("%v, exiting", err)
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
case err != nil:
|
case err != nil:
|
||||||
|
|||||||
Reference in new issue
Block a user