Improve messages for GCS store
This commit is contained in:
parent
baceec15ed
commit
d002eb390e
|
@ -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)
|
||||||
|
|
||||||
|
|
BIN
cmd/tusd/tusd
BIN
cmd/tusd/tusd
Binary file not shown.
Loading…
Reference in New Issue