summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-09-26 12:44:23 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-09-29 11:53:19 +0200
commit7e4a27bee8891742af6ca48ad1939f2f7e2f1a31 (patch)
treea4bf99f347139eda8964257bbad88a0e01a07403 /src
parent7540f36126aa2a7eea331be82f2f279c10732509 (diff)
Improve debug output when checking module status
This is only visible when running in -verbose mode Change-Id: Ieb572f745684a61c98580f4358ce92545cafbb62 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qtmoduleupdater/moduleupdatebatch.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qtmoduleupdater/moduleupdatebatch.go b/src/qtmoduleupdater/moduleupdatebatch.go
index 067ec165..6eabde02 100644
--- a/src/qtmoduleupdater/moduleupdatebatch.go
+++ b/src/qtmoduleupdater/moduleupdatebatch.go
@@ -96,10 +96,16 @@ func removeAllDirectAndIndirectDependencies(allModules *map[string]*Module, modu
}
func (batch *ModuleUpdateBatch) checkPendingModules() {
+ log.Println("Checking status of pending modules")
var newPending []*PendingUpdate
for _, pendingUpdate := range batch.Pending {
module := pendingUpdate.Module
status, err := getGerritChangeStatus(module.RepoPath, module.Branch, pendingUpdate.ChangeID)
+ if err != nil {
+ log.Printf(" status check of %s gave error: %s\n", module.RepoPath, err)
+ } else {
+ log.Printf(" status of %s: %s\n", module.RepoPath, status)
+ }
if err != nil || status == "STAGED" || status == "INTEGRATING" || status == "STAGING" {
// no change yet
newPending = append(newPending, pendingUpdate)