Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Ensure Debugw always has the right number of fields #455

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

sethvargo
Copy link
Member

Apparently this turned into a panic instead of a silent failure in a recent version.

Release Note

Fix migration logging

/cc @chaodaiG

Apparently this turned into a panic instead of a silent failure in a
recent version.
@googlebot googlebot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Sep 2, 2020
@@ -52,12 +52,12 @@ func (db *Database) getMigrations(ctx context.Context) *gormigrate.Gormigrate {
Migrate: func(tx *gorm.DB) error {
// This is "out of order" as it were, but is needed to bootstrap fresh systems.
// Also in migration 8
logger.Debugw("db migrations: creating realms table")
logger.Debugw("creating realms table")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about the logger in this function, does it need the same change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, debugw is (args, ...vars). It requires vars be an even number (and 0 is even)

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikehelmick, sethvargo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [mikehelmick,sethvargo]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 1311497 into main Sep 2, 2020
@google-oss-robot google-oss-robot deleted the sethvargo/migrate branch September 2, 2020 15:06
@google google locked and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants