~ubuntu-branches/ubuntu/wily/ubuntu-push/wily-proposed

« back to all changes in this revision

Viewing changes to urldispatcher/urldispatcher.go

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, John R. Lenton
  • Date: 2015-02-09 11:08:02 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20150209110802-bqjrq4v480arc1jw
Tags: 0.67+15.04.20150209-0ubuntu1
[ John R. Lenton ]
* Updated precommit script. [dev]

* Include code examples in docs (instead of repeating). [docs]

* Make tests more robust in the face of go 1.3 [client, server]

* Introduce StartClientAuthFlex for acceptance tests: Start a client
  with auth, take a devId regexp, don't check any client event; support
  connbroken in acceptanceclient. [server]

* Cleanup and improve logging, and make log messages more
  consistent. [client]

* Partially work around bug lp:1390663 in a minimally intrusive way
  (real fix will have to wait). [client]

* Add SIGQUIT handler to spit out stack dumps; more logging
  tweaks. [client, server]

* Adds a couple of buttons to exercise more APIs, version bump to
  0.44. [sample app]

* Add APIError to server/acceptance/kit that includes the body for
  debugging. [server]

* Add DisableKeepAlives and MaxIdleConnsPerHost to the APIClient
  SetupClient method. [server]

* Clean up goroutines in tests. [client]

* Add an explicit check and log message for nil error on webcheck's CopyN. [client]

* Log line nums, enabled when logLevel = debug. [client server]

* Workaround gc issue with 1.3 and 32 bits. Fixes FTBFS. [client]

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
var cTestURL = curldispatcher.TestURL
45
45
 
46
46
func (ud *urlDispatcher) DispatchURL(url string, app *click.AppId) error {
47
 
        ud.log.Debugf("Dispatching %s", url)
 
47
        ud.log.Debugf("dispatching %s", url)
48
48
        err := cDispatchURL(url, app.DispatchPackage())
49
49
        if err != nil {
50
50
                ud.log.Errorf("DispatchURL failed: %s", err)
62
62
        }
63
63
        for _, appId := range appIds {
64
64
                if appId != app.Versioned() {
65
 
                        ud.log.Debugf("Notification skipped because of different appid for actions: %v - %s != %s", urls, appId, app.Versioned())
 
65
                        ud.log.Debugf("notification skipped because of different appid for actions: %v - %s != %s", urls, appId, app.Versioned())
66
66
                        return false
67
67
                }
68
68
        }