Add more explicit messages about the fact that a thread is blocked 14/4814/1
authorRobert Varga <rovarga@cisco.com>
Sun, 26 Jan 2014 18:01:48 +0000 (19:01 +0100)
committerRobert Varga <rovarga@cisco.com>
Sun, 26 Jan 2014 18:03:20 +0000 (19:03 +0100)
When a thread is hijacked we need to know why. Announce it loudly.

Change-Id: Ie06fe283c467233bf421a274bc521becc6a9db47
Signed-off-by: Robert Varga <rovarga@cisco.com>
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/RuntimeGeneratedMappingServiceImpl.xtend

index 23a9cd00443341f178651ddc2fc5ec834f367b03..6fc4a815d61409f110f4c52f58a7550010d3cab6 100644 (file)
@@ -275,8 +275,9 @@ class RuntimeGeneratedMappingServiceImpl implements BindingIndependentMappingSer
         if (typeToDefinition.containsKey(type)) {
             return;
         }
-        LOG.trace("Thread blocked waiting for schema for: {}",type.fullyQualifiedName)
+        LOG.info("Thread blocked waiting for schema for: {}",type.fullyQualifiedName)
         type.waitForTypeDefinition.get();
+        LOG.info("Schema for {} became available, thread unblocked",type.fullyQualifiedName)
     }
 
     private def Future<Type> waitForTypeDefinition(Type type) {