Improve messages for GCS store

This commit is contained in:
Marius 2018-02-16 23:18:26 +01:00
parent baceec15ed
commit d002eb390e
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func CreateComposer() {
// GCS_SERVICE_ACCOUNT_FILE environment variable. // GCS_SERVICE_ACCOUNT_FILE environment variable.
gcsSAF := os.Getenv("GCS_SERVICE_ACCOUNT_FILE") gcsSAF := os.Getenv("GCS_SERVICE_ACCOUNT_FILE")
if gcsSAF == "" { if gcsSAF == "" {
stderr.Fatalf("No service account file provided for Google Cloud Storage\n") stderr.Fatalf("No service account file provided for Google Cloud Storage using the GCS_SERVICE_ACCOUNT_FILE environment variable.\n")
} }
service, err := gcsstore.NewGCSService(gcsSAF) service, err := gcsstore.NewGCSService(gcsSAF)
@ -54,6 +54,8 @@ func CreateComposer() {
stderr.Fatalf("Unable to create Google Cloud Storage service: %s\n", err) stderr.Fatalf("Unable to create Google Cloud Storage service: %s\n", err)
} }
stdout.Printf("Using 'gcs://%s' as GCS bucket for storage.\n", Flags.GCSBucket)
store := gcsstore.New(Flags.GCSBucket, service) store := gcsstore.New(Flags.GCSBucket, service)
store.UseIn(Composer) store.UseIn(Composer)

Binary file not shown.