Skip to content

Commit 4d4eb7d

Browse files
committed
Added log output for app uploads from cloud functions
1 parent 34fac16 commit 4d4eb7d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

app_upload/stitcher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ func Copy(src, dst string) error {
154154
}
155155
return out.Close()
156156
}
157+
157158
func ZipFiles(filename string, files []string) error {
158159
newZipFile, err := os.Create(filename)
159160
if err != nil {

shared.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12836,11 +12836,9 @@ func GetWorkflowAppConfig(resp http.ResponseWriter, request *http.Request) {
1283612836
// Checking if it's a special region. All user-specific requests should
1283712837
// Update local stash here?
1283812838
// Load config & update
12839-
// go loadAppConfigFromMain(fileId)
12840-
12841-
// go through shuffler.io and not subdomains
1284212839
gceProject := os.Getenv("SHUFFLE_GCEPROJECT")
1284312840
if gceProject != "shuffler" && gceProject != sandboxProject && len(gceProject) > 0 {
12841+
// Must be here to not override apps
1284412842
go loadAppConfigFromMain(fileId)
1284512843
log.Printf("[DEBUG] Redirecting App request to main site handler (shuffler.io)")
1284612844
RedirectUserRequest(resp, request)

structs.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4162,3 +4162,9 @@ type PipelineInfo struct {
41624162
type PipelineInfoWrapper struct {
41634163
Pipelines []PipelineInfo `json:"pipelines"`
41644164
}
4165+
4166+
type RequestResponse struct {
4167+
Success bool `json:"success"`
4168+
Reason string `json:"reason"`
4169+
Details string `json:"details"`
4170+
}

0 commit comments

Comments
 (0)