Browse Source

Don't log unsupported document type messages

In the full airship use case, shipyard sends a deckhand url to
armada which returns all site documents, so this leads to many
many of these unwanted messages which make the logs difficult to
use. Hence this removes these messages.

Change-Id: I297df16d180b9ed6fae6bb8f8a0d96c3533766ae
changes/20/639720/2
Sean Eagan 2 months ago
parent
commit
8cf71c0c6d
1 changed files with 0 additions and 13 deletions
  1. 0
    13
      armada/utils/validate.py

+ 0
- 13
armada/utils/validate.py View File

@@ -177,19 +177,6 @@ def validate_armada_document(document):
177 177
                 diagnostic='Armada is misconfigured.')
178 178
             LOG.error('ValidationMessage: %s', vmsg.get_output_json())
179 179
             details.append(vmsg.get_output())
180
-    else:
181
-        vmsg = ValidationMessage(
182
-            message='Unsupported document type.',
183
-            error=False,
184
-            name='ARM002',
185
-            level='Warning',
186
-            schema=schema,
187
-            doc_name=document_name,
188
-            diagnostic='Please ensure document is one of '
189
-            'the following schema types: %s' % list(SCHEMAS.keys()))
190
-        LOG.info('Unsupported document type, ignoring %s.', schema)
191
-        LOG.debug('ValidationMessage: %s', vmsg.get_output_json())
192
-        # Validation API doesn't care about this type of message, don't send
193 180
 
194 181
     if len([x for x in details if x.get('error', False)]) > 0:
195 182
         return False, details

Loading…
Cancel
Save