Skip to content

Commit 34c20eb

Browse files
authored
Merge pull request #14 from weoses/improve-logging-v2
InlineHandlerService - fix typo log-slog
2 parents b9619eb + 1d0771b commit 34c20eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

telegram-service/src/service/InlineHandlerService.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"strconv"
77

88
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
9-
"github.com/labstack/gommon/log"
109
"mine.local/ocr-gallery/telegram-service/conf"
1110
)
1211

@@ -78,7 +77,7 @@ func (i *InineHandlerServiceImpl) ProcessQuery(
7877

7978
photos := make([]interface{}, len(results))
8079
for index, item := range results {
81-
log.Info("SearchResultItem ",
80+
slog.Info("SearchResultItem ",
8281
"userId", userId,
8382
"requestId", request.ID,
8483
"index", index,
@@ -103,7 +102,7 @@ func (i *InineHandlerServiceImpl) ProcessQuery(
103102
nextOffset = strconv.FormatInt(results[i.config.PageSize-1].SortId, 10)
104103
}
105104

106-
log.Info("Search next offset ",
105+
slog.Info("Search next offset ",
107106
"userId", userId,
108107
"requestId", request.ID,
109108
"nextOffset", nextOffset)

0 commit comments

Comments
 (0)