From 3c66480f0fe951fc845bc22fb656251d8d174da0 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 13 Jan 2024 14:35:25 +0900 Subject: [PATCH] =?UTF-8?q?=E5=8F=97=E3=81=91=E5=8F=96=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E3=82=AF=E3=82=A8=E3=83=AA=E3=82=92=E3=82=B3=E3=83=B3=E3=82=BD?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E3=81=AB=E5=90=90=E3=81=8D=E5=87=BA=E3=81=99?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/data/impl/LacertaSearchStubImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); } }