Skip to content
Snippets Groups Projects
Commit 560c0b4d authored by gmantele's avatar gmantele
Browse files

[UWS] Remove logging from the constructor of UWSServlet when no logger is yet

set.
parent 16167f2e
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ package uws.service; ...@@ -16,7 +16,7 @@ package uws.service;
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with UWSLibrary. If not, see <http://www.gnu.org/licenses/>. * along with UWSLibrary. If not, see <http://www.gnu.org/licenses/>.
* *
* Copyright 2012-2015 - UDS/Centre de Données astronomiques de Strasbourg (CDS), * Copyright 2012-2016 - UDS/Centre de Données astronomiques de Strasbourg (CDS),
* Astronomisches Rechen Institut (ARI) * Astronomisches Rechen Institut (ARI)
*/ */
...@@ -149,7 +149,7 @@ import uws.service.request.UploadFile; ...@@ -149,7 +149,7 @@ import uws.service.request.UploadFile;
* </p> * </p>
* *
* @author Gr&eacute;gory Mantelet (CDS;ARI) * @author Gr&eacute;gory Mantelet (CDS;ARI)
* @version 4.1 (04/2015) * @version 4.2 (02/2016)
*/ */
public abstract class UWSServlet extends HttpServlet implements UWS, UWSFactory { public abstract class UWSServlet extends HttpServlet implements UWS, UWSFactory {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -213,12 +213,9 @@ public abstract class UWSServlet extends HttpServlet implements UWS, UWSFactory ...@@ -213,12 +213,9 @@ public abstract class UWSServlet extends HttpServlet implements UWS, UWSFactory
// Set the file manager to use: // Set the file manager to use:
try{ try{
fileManager = createFileManager(); fileManager = createFileManager();
if (fileManager == null){ if (fileManager == null)
logger.logUWS(LogLevel.FATAL, null, "INIT", "Missing file manager! The function createFileManager() MUST return a valid instanceof UWSFileManager!", null);
throw new ServletException(INIT_ERROR_MSG); throw new ServletException(INIT_ERROR_MSG);
}
}catch(UWSException ue){ }catch(UWSException ue){
logger.logUWS(LogLevel.FATAL, null, "INIT", "Can't create a file manager!", ue);
throw new ServletException(INIT_ERROR_MSG, ue); throw new ServletException(INIT_ERROR_MSG, ue);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment