diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaSearchStubImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaSearchStubImpl.java index 163f7e64..ff56abe4 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/LacertaSearchStubImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaSearchStubImpl.java @@ -8,24 +8,31 @@ import one.nem.lacerta.data.LacertaSearch; import one.nem.lacerta.model.ListItem; import one.nem.lacerta.data.LacertaLibrary; +import one.nem.lacerta.utils.LacertaLogger; public class LacertaSearchStubImpl implements LacertaSearch { private LacertaLibrary library; + private LacertaLogger logger; @Inject - public LacertaSearchStubImpl(LacertaLibrary library) { + public LacertaSearchStubImpl(LacertaLibrary library, LacertaLogger logger) { this.library = library; + this.logger = logger; } @Override public ArrayList autoSearch(String query, int limit) { + logger.debug("SearchStub", "autoSearch"); + logger.debug("SearchStub", "query: " + query); return library.getLibraryPage(limit).getListItems(); } @Override public ArrayList autoSearch(String query, int limit, int offset) { + logger.debug("SearchStub", "autoSearch"); + logger.debug("SearchStub", "query: " + query); return library.getLibraryPage(limit, offset).getListItems(); } }