From 387785b40cb0bfe792c0c7f19862c28aa9b6cfea Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 4 Jun 2025 10:33:00 +0200 Subject: [PATCH] reimported logs without import cycle --- tools/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/api.go b/tools/api.go index c4d17f7..7b09cb0 100644 --- a/tools/api.go +++ b/tools/api.go @@ -5,9 +5,9 @@ import ( "errors" "strings" - oclib "cloud.o-forge.io/core/oc-lib" "cloud.o-forge.io/core/oc-lib/config" "cloud.o-forge.io/core/oc-lib/dbs/mongo" + "cloud.o-forge.io/core/oc-lib/logs" beego "github.com/beego/beego/v2/server/web" ) @@ -136,7 +136,7 @@ func (a *API) CheckRemotePeer(url string) (State, map[string]int) { // CheckRemoteAPIs checks the state of remote APIs from your proper OC func (a *API) CheckRemoteAPIs(apis []DataType) (State, map[string]string, error) { // Check if the database is up - l := oclib.GetLogger() + l := logs.GetLogger() new := map[string]string{} caller := NewHTTPCaller(map[DataType]map[METHOD]string{}) // Create a new http caller code := 0