Skip to content

Commit 542712a

Browse files
committed
Use xlog
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 9bb7e90 commit 542712a

File tree

8 files changed

+8
-61
lines changed

8 files changed

+8
-61
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/dslipak/pdf v0.0.2
99
github.com/go-git/go-git/v5 v5.16.0
1010
github.com/labstack/echo/v4 v4.13.3
11+
github.com/mudler/xlog v0.0.5
1112
github.com/onsi/ginkgo/v2 v2.22.2
1213
github.com/onsi/gomega v1.36.2
1314
github.com/oxffaa/gopher-parse-sitemap v0.0.0-20191021113419-005d2eb1def4

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE
6464
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
6565
github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
6666
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
67+
github.com/mudler/xlog v0.0.5 h1:2unBuVC5rNGhCC86UaA94TElWFml80NL5XLK+kAmNuU=
68+
github.com/mudler/xlog v0.0.5/go.mod h1:39f5vcd05Qd6GWKM8IjyHNQ7AmOx3ZM0YfhfIGhC18U=
6769
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
6870
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
6971
github.com/onsi/ginkgo/v2 v2.22.2 h1:/3X8Panh8/WwhU/3Ssa6rCKqPLuAkVY2I0RoyDLySlU=

pkg/xlog/xlog.go

Lines changed: 0 additions & 56 deletions
This file was deleted.

rag/collection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"path/filepath"
77
"strings"
88

9-
"github.com/mudler/localrecall/pkg/xlog"
109
"github.com/mudler/localrecall/rag/engine"
1110
"github.com/mudler/localrecall/rag/engine/localai"
11+
"github.com/mudler/xlog"
1212
"github.com/sashabaranov/go-openai"
1313
)
1414

rag/persistency.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313

1414
"github.com/dslipak/pdf"
1515
"github.com/mudler/localrecall/pkg/chunk"
16-
"github.com/mudler/localrecall/pkg/xlog"
1716
"github.com/mudler/localrecall/rag/engine"
1817
"github.com/mudler/localrecall/rag/types"
18+
"github.com/mudler/xlog"
1919
"github.com/sashabaranov/go-openai"
2020
)
2121

rag/sources/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package sources
33
import (
44
"strings"
55

6-
"github.com/mudler/localrecall/pkg/xlog"
6+
"github.com/mudler/xlog"
77
)
88

99
func SourceRouter(url string, config *Config) (string, error) {

rag/sources/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"io"
55
"net/http"
66

7-
"github.com/mudler/localrecall/pkg/xlog"
7+
"github.com/mudler/xlog"
88
sitemap "github.com/oxffaa/gopher-parse-sitemap"
99
"jaytaylor.com/html2text"
1010
)

routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"time"
1212

1313
"github.com/labstack/echo/v4"
14-
"github.com/mudler/localrecall/pkg/xlog"
1514
"github.com/mudler/localrecall/rag"
15+
"github.com/mudler/xlog"
1616
"github.com/sashabaranov/go-openai"
1717
)
1818

0 commit comments

Comments
 (0)