ducky/subscriptions
12:39625b37485d Browse Files
Fix go vet errors. We had a few logging statements that used placeholders but didn't provide any variables to fill them. We now specify the appropriate variables.
listeners/subscription_creator/subscription_creator.go
1.1 --- a/listeners/subscription_creator/subscription_creator.go Sun Sep 27 21:18:45 2015 -0700 1.2 +++ b/listeners/subscription_creator/subscription_creator.go Sun Sep 27 21:20:09 2015 -0700 1.3 @@ -70,7 +70,7 @@ 1.4 var event events.Event 1.5 err := json.Unmarshal(msg.Body, &event) 1.6 if err != nil { 1.7 - log.Printf("Error decoding event (%s), discarding: %+v\n", err) 1.8 + log.Printf("Error decoding event (%s), discarding: %+v\n", msg.Body, err) 1.9 return nil 1.10 } 1.11 if event.System != "code.secondbit.org/auth" { 1.12 @@ -87,7 +87,7 @@ 1.13 } 1.14 userID, err := uuid.Parse(event.ID) 1.15 if err != nil { 1.16 - log.Printf("Error parsing UUID (%s), not retrying: %+v\n", event.ID) 1.17 + log.Printf("Error parsing UUID (%s), not retrying: %+v\n", event.ID, err) 1.18 return nil 1.19 } 1.20 subscription, err := subsClient.CreateSubscription(subscriptions.SubscriptionChange{ 1.21 @@ -105,7 +105,7 @@ 1.22 var event events.Event 1.23 err := json.Unmarshal(msg.Body, &event) 1.24 if err != nil { 1.25 - log.Printf("Error decoding event (%s), discarding: %+v\n", err) 1.26 + log.Printf("Error decoding event (%s), discarding: %+v\n", msg.Body, err) 1.27 return nil 1.28 } 1.29 if event.System != "code.secondbit.org/auth" { 1.30 @@ -122,7 +122,7 @@ 1.31 } 1.32 login, err := authClient.GetLogin(event.ID) 1.33 if err != nil { 1.34 - log.Printf("Error retrieving login (%s): %+v\n", event.ID) 1.35 + log.Printf("Error retrieving login (%s): %+v\n", event.ID, err) 1.36 return err 1.37 } 1.38 if login.Type != "email" {