提交 408b5319 编写于 作者: O Oleg Nenashev

Merge pull request #1651 from deadmoose/logger_class

Fix some loggers which are identifying as the wrong class.
......@@ -89,5 +89,5 @@ public class PlainTextConsoleOutputStream extends LineTransformationOutputStream
}
private static final Logger LOGGER = Logger.getLogger(ConsoleAnnotationOutputStream.class.getName());
private static final Logger LOGGER = Logger.getLogger(PlainTextConsoleOutputStream.class.getName());
}
......@@ -104,11 +104,11 @@ public abstract class ItemGroupMixIn {
// Try to retain the identity of an existing child object if we can.
V item = (V) parent.getItem(subdir.getName());
if (item == null) {
XmlFile xmlFile = Items.getConfigFile( subdir );
XmlFile xmlFile = Items.getConfigFile(subdir);
if (xmlFile.exists()) {
item = (V) Items.load( parent, subdir );
}else{
Logger.getLogger( ItemGroupMixIn.class.getName() ).log( Level.WARNING, "could not find file " + xmlFile.getFile());
item = (V) Items.load(parent, subdir);
} else {
Logger.getLogger(ItemGroupMixIn.class.getName()).log(Level.WARNING, "could not find file " + xmlFile.getFile());
continue;
}
} else {
......
......@@ -238,7 +238,7 @@ public class Nodes implements Saveable {
newNodes.put(node.getNodeName(), node);
}
} catch (IOException e) {
Logger.getLogger(ItemGroupMixIn.class.getName()).log(Level.WARNING, "could not load " + subdir, e);
Logger.getLogger(Nodes.class.getName()).log(Level.WARNING, "could not load " + subdir, e);
}
}
}
......
......@@ -158,5 +158,5 @@ public class BasicHeaderProcessor implements Filter {
public void destroy() {
}
private static final Logger LOGGER = Logger.getLogger(ApiTokenFilter.class.getName());
private static final Logger LOGGER = Logger.getLogger(BasicHeaderProcessor.class.getName());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册