diff options
author | Sven Gothel <[email protected]> | 2015-03-09 02:10:29 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-09 02:10:29 +0100 |
commit | 3b7871515f9a6a3c7adcbf12772d168e61f86d50 (patch) | |
tree | 99fd6118d20fd002e144bd756157b3421ae4b1ef /src/java/com/jogamp/gluegen/Logging.java | |
parent | 457355003bff320eee831731de016d29fb1e3982 (diff) |
Bug 1134 - Make ASTLocusTag's text optional
Diffstat (limited to 'src/java/com/jogamp/gluegen/Logging.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/Logging.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/Logging.java b/src/java/com/jogamp/gluegen/Logging.java index f57c485..7000406 100644 --- a/src/java/com/jogamp/gluegen/Logging.java +++ b/src/java/com/jogamp/gluegen/Logging.java @@ -41,6 +41,7 @@ import java.util.logging.LogRecord; import java.util.logging.Logger; import com.jogamp.common.util.PropertyAccess; +import com.jogamp.gluegen.cgram.types.AliasedSymbol; import com.jogamp.gluegen.cgram.types.Type; /** @@ -234,14 +235,19 @@ public class Logging { params[i] = ((Type)o).getDebugString(); } else if( o instanceof JavaType ) { params[i] = ((JavaType)o).getDebugString(); + } else if( o instanceof AliasedSymbol ) { + params[i] = ((AliasedSymbol)o).getAliasedString(); } } } final StringBuilder sb = new StringBuilder(256); if( null != astLocus ) { - astLocus.toString(sb, getCanonicalName(record.getLevel())).append(": "); + astLocus.toString(sb, getCanonicalName(record.getLevel()), GlueGen.debug()).append(": "); } - sb.append(simpleClassName).append(": ").append(formatMessage(record)).append("\n"); + if( GlueGen.debug() ) { + sb.append(simpleClassName).append(": "); + } + sb.append(formatMessage(record)).append("\n"); return sb.toString(); } } |