avoid logger with name ended with .null if no hint

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-11-15 10:18:21 +00:00
parent 72df73f9e8
commit e1e683cbbb
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ public class Slf4jLoggerManager
public Logger getLoggerForComponent( String role, String hint )
{
return new Slf4jLogger( loggerFactory.getLogger( role + "." + hint ) );
return ( null == hint
? getLoggerForComponent( role )
: new Slf4jLogger( loggerFactory.getLogger( role + "." + hint ) ) );
}
//