pkg/deploy: add debugging print

Change-Id: I4e466e29167ff702ce5df0b1cf125aa6ccce5aca
This commit is contained in:
mpl 2017-05-05 19:23:54 +02:00
parent 8f1a7df176
commit ec6f46f59b
2 changed files with 2 additions and 1 deletions

View File

@ -246,7 +246,7 @@ func (d *Deployer) CreateProject(ctx context.Context) (string, error) {
projectName = projectID
} else {
projectID = genRandomProjectID()
projectName = strings.Replace(projectID, "camlistore-launcher", "Camlistore ", 1)
projectName = strings.Replace(projectID, "camlistore-launcher-", "Camlistore ", 1)
}
project := cloudresourcemanager.Project{
Name: projectName,

View File

@ -455,6 +455,7 @@ func (h *DeployHandler) serveCallback(w http.ResponseWriter, r *http.Request) {
// So we try to do so.
projectID, err := depl.CreateProject(context.TODO())
if err != nil {
h.logger.Printf("error creating project: %v", err)
// TODO(mpl): we log the errors, but none of them are
// visible to the user (they just get a 500). I should
// probably at least detect and report them the project