From 11fe329e8ffd7801e96852d152fa3a9fbc531edf Mon Sep 17 00:00:00 2001 From: MD-Levitan Date: Wed, 5 May 2021 17:54:54 +0300 Subject: Remove log --- docker-compose.yml | 4 +++- services_controller.go | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b43ec5b..b22c4a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,12 +3,14 @@ services: mongo: image: mongo:4 + ports: + - "27017:27017" networks: - acheronet restart: always caronte: - image: eciavatta/caronte:latest + image: caronte ports: - "3333:3333" depends_on: diff --git a/services_controller.go b/services_controller.go index 566f6ba..aea4693 100644 --- a/services_controller.go +++ b/services_controller.go @@ -86,12 +86,8 @@ func (sc *ServicesController) DeleteService(c context.Context, service Service) defer sc.mutex.Unlock() if err := sc.storage.Delete(Services).Context(c).Filter(OrderedDocument{{"_id", service.Port}}).One(); err != nil { - log.Println(service) - log.Println(err) return errors.New(err.Error()) } else { - log.Println(err) - log.Println(sc.services) delete(sc.services, service.Port) return nil } -- cgit v1.2.3-70-g09d2