Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: chrome/common/extensions/docs/server2/api_data_source.py

Issue 379923013: Docserver: Don't spam when availability can't be found, because it's happening (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/api_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source.py b/chrome/common/extensions/docs/server2/api_data_source.py
index 052abcd87031a42edb248916ed60b3ab62b04fe6..aaea1ab2a1e50fa4b28bc6fb70cf8be6624ab855 100644
--- a/chrome/common/extensions/docs/server2/api_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_data_source.py
@@ -9,14 +9,13 @@ import posixpath
from data_source import DataSource
from docs_server_utils import StringIdentity
-from environment import IsPreviewServer
+from environment import IsPreviewServer, IsReleaseServer
from extensions_paths import JSON_TEMPLATES, PRIVATE_TEMPLATES
from file_system import FileNotFoundError
from future import Future, Collect
from platform_util import GetPlatforms
import third_party.json_schema_compiler.json_parse as json_parse
import third_party.json_schema_compiler.model as model
-from environment import IsPreviewServer
from third_party.json_schema_compiler.memoize import memoize
@@ -218,7 +217,9 @@ class _APINodeCursor(object):
return None
node_availability = self._LookupAvailability(self._lookup_path)
if node_availability is None:
- logging.warning('No availability found for: %s' % self)
+ if not IsReleaseServer():
+ # Bad, and happens a lot :(
+ logging.warning('No availability found for: %s' % self)
return None
parent_node_availability = self._LookupAvailability(self._GetParentPath())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698