Skip to content
Snippets Groups Projects
Commit eed559b6 authored by Lars Johansson's avatar Lars Johansson
Browse files

Improve logging in read endpoints for names and structures

parent 5e7c152a
No related branches found
No related tags found
No related merge requests found
......@@ -276,9 +276,9 @@ public class NamesService {
ResponsePageNameElements response = new ResponsePageNameElements(nameElements, totalCount, nameElements.size(), offset, limit);
LOGGER.log(Level.FINE,
() -> MessageFormat.format(
TextUtil.DESCRIPTION_NUMBER_ELEMENTS,
TextUtil.DESCRIPTION_RESPONSE,
TextUtil.READ_NAMES,
nameElements.size()));
response.toString()));
return response;
}
......@@ -394,9 +394,9 @@ public class NamesService {
ResponsePageNameElements response = new ResponsePageNameElements(nameElements, totalCount, nameElements.size(), offset, limit);
LOGGER.log(Level.FINE,
() -> MessageFormat.format(
TextUtil.DESCRIPTION_NUMBER_ELEMENTS,
TextUtil.DESCRIPTION_RESPONSE,
TextUtil.READ_NAMES,
nameElements.size()));
response.toString()));
return response;
}
......
......@@ -348,12 +348,11 @@ public class StructuresService {
}
ResponsePageStructureElements response = new ResponsePageStructureElements(structureElements, totalCount, structureElements.size(), offset, limit);
int numberElements = structureElements.size();
LOGGER.log(Level.FINE,
() -> MessageFormat.format(
TextUtil.DESCRIPTION_NUMBER_ELEMENTS,
TextUtil.DESCRIPTION_RESPONSE,
TextUtil.READ_STRUCTURES,
numberElements));
response.toString()));
return response;
}
......
......@@ -129,6 +129,7 @@ public class TextUtil {
public static final String DESCRIPTION_NUMBER_ELEMENTS = "{0}, # elements: {1}";
public static final String DESCRIPTION_NUMBER_ELEMENTS_IN_OUT = "{0}, # elements (in): {1}, # elements (out): {2}";
public static final String DESCRIPTION_NAME_VALUE = "{0}, {1}: {2}";
public static final String DESCRIPTION_RESPONSE = "{0}, response: {1}";
public static final String COMMAND = "command";
public static final String ELEMENT_IN = "element (in)";
public static final String ELEMENT_OUT = "element (out)";
......
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