mirror of https://github.com/perkeep/perkeep.git
pkg/deploy: add debugging print
Change-Id: I4e466e29167ff702ce5df0b1cf125aa6ccce5aca
This commit is contained in:
parent
8f1a7df176
commit
ec6f46f59b
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue