mirror of https://github.com/apache/maven.git
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:
parent
72df73f9e8
commit
e1e683cbbb
|
@ -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 ) ) );
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue