From 4404d37fee017e2ab6c5a963ed1080a07ab37aa1 Mon Sep 17 00:00:00 2001 From: Jordan Caussat Date: Mon, 14 May 2018 16:06:20 +0200 Subject: [PATCH] TER-273: Improve error log messages --- ghost/resource_ghost_app.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/resource_ghost_app.go b/ghost/resource_ghost_app.go index ffaaf87..cb1fd31 100644 --- a/ghost/resource_ghost_app.go +++ b/ghost/resource_ghost_app.go @@ -773,7 +773,7 @@ func expandGhostAppFeatures(d []interface{}) *[]ghost.Feature { param = `{}` } if err := json.Unmarshal([]byte(param.(string)), &jsonDoc); err != nil { - log.Printf("Error loading feature paramaters json: %v", err) + log.Printf("[ERROR] can't load feature.parameters json: %v", err) } feature := ghost.Feature{ @@ -827,11 +827,11 @@ func suppressDiffFeaturesParameters() schema.SchemaDiffSuppressFunc { var oldJSON, newJSON interface{} if err := json.Unmarshal([]byte(old), &oldJSON); err != nil { - log.Printf("Error loading feature parameters json: %v", err) + log.Printf("[ERROR] can't load feature.parameters json: %v", err) } if err := json.Unmarshal([]byte(new), &newJSON); err != nil { - log.Printf("Error loading feature parameters json: %v", err) + log.Printf("[ERROR] can't load feature.parameters json: %v", err) } // If the new parameters structure is equivalent to the old one,