commit | 4ba437d56455146d5895bec29d0c5bac01c392ba | [log] [tgz] |
---|---|---|
author | Gilad Arnold <[email protected]> | Fri Oct 05 22:28:27 2012 |
committer | Gerrit <[email protected]> | Mon Oct 08 20:14:06 2012 |
tree | 93bbcdd8341e69a9fa0d0426b972ea30a933c3c7 | |
parent | e993af522f163fbabca9e9ae1ec9aadd57d79c8c [diff] |
devserver: return empty host log if not events were logged This fixes a bug where the /api/hostlog?ip=foo URL returns no value when no events were logged for a given IP address, which causes a problem on the client side (who is expecting a valid JSON object). Instead, we're not returning an empty log. BUG=None TEST=Devserver returns empty log (list) for queries about idle or non-existent hosts Change-Id: If2b27b02272dcf38b732918115e7bd7bb2e49a7a Reviewed-on: https://gerrit.chromium.org/gerrit/34825 Reviewed-by: Chris Sosa <[email protected]> Commit-Ready: Gilad Arnold <[email protected]> Tested-by: Gilad Arnold <[email protected]>