summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-02-04 22:08:42 +0100
committerAndrew Branson <andrew.branson@cern.ch>2013-02-04 22:08:42 +0100
commit2663cbaaa0c5923627b13b6891b6baa03e6298c0 (patch)
tree0e501c13fc136996d7ea1654525b493bc3a5a4bb
parentfbb4c79a1f85c5e013fc7c626c830cf17dab3439 (diff)
Cleanup module import log messages
-rw-r--r--src/main/java/com/c2kernel/process/module/Module.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/process/module/Module.java b/src/main/java/com/c2kernel/process/module/Module.java
index ee6d71c..abcae2e 100644
--- a/src/main/java/com/c2kernel/process/module/Module.java
+++ b/src/main/java/com/c2kernel/process/module/Module.java
@@ -74,7 +74,7 @@ public class Module {
public void importAll(ItemProxy serverEntity, String moduleXML) throws Exception {
addModuleItem(moduleXML);
for (ModuleImport thisImp : imports.list) {
- Logger.msg(5, "Importing "+thisImp.name+" "+thisImp.getClass().getSimpleName());
+ Logger.msg(1, "Checking for "+thisImp.name+" "+thisImp.getClass().getSimpleName());
if (thisImp instanceof ModuleResource) {
ModuleResource thisRes = (ModuleResource)thisImp;
try {
@@ -91,6 +91,7 @@ public class Module {
Logger.msg(3, "Module.importAll() - Item '"+thisItem.name+"' found.");
continue;
} catch (ObjectNotFoundException ex) { }
+ Logger.msg("Module.importAll() - Item '"+thisItem.name+"' not found. Creating.");
thisItem.create(Gateway.getLDAPLookup().getRoleManager().getAgentPath("system").getSysKey());
}
else if (thisImp instanceof NewAgent) {
@@ -101,7 +102,6 @@ public class Module {
continue;
} catch (ObjectNotFoundException ex) { }
Logger.msg("Module.importAll() - User '"+thisAgent.name+"' not found. Creating.");
-
thisAgent.create(Gateway.getLDAPLookup().getRoleManager().getAgentPath("system").getSysKey());
}
}