import mir.module.AbstractModule;\r
import mir.module.ModuleException;\r
import mir.storage.StorageObject;\r
-import mir.storage.StorageObjectFailure;\r
-\r
import mir.util.*;\r
\r
\r
public ServletModule(){\r
try {\r
configuration = MirPropertiesConfiguration.instance();\r
- } catch (PropertiesConfigExc e) {\r
- e.printStackTrace(System.err);\r
+ }\r
+ catch (PropertiesConfigExc e) {\r
+ throw new RuntimeException("Can't get configuration: " + e.getMessage());\r
}\r
}\r
\r
for (int i = 0; i < theFieldList.size(); i++) {\r
aField = (String) theFieldList.get(i);\r
\r
- System.out.println("field " + aField + " = " + parser.getParameter(aField));\r
+ logger.debug("field " + aField + " = " + parser.getParameter(aField));\r
\r
aValue = parser.getParameter(aField);\r
if (aValue != null)\r
return withValues;\r
}\r
catch (Throwable e) {\r
- e.printStackTrace(System.out);\r
+ e.printStackTrace(logger.asPrintWriter(LoggerWrapper.DEBUG_MESSAGE));\r
throw new ServletModuleException(\r
"ServletModule.getIntersectingValues: " + e.getMessage());\r
}\r