diff options
author | MD-Levitan | 2021-05-05 14:54:54 +0000 |
---|---|---|
committer | MD-Levitan | 2021-05-05 14:54:54 +0000 |
commit | 11fe329e8ffd7801e96852d152fa3a9fbc531edf (patch) | |
tree | 5ca245fcecd1becf289f8bcf8d795fdef3811d02 | |
parent | ae8b8b5a5b4943df04f55dbec6c6db7e497d72c8 (diff) |
Remove log
-rw-r--r-- | docker-compose.yml | 4 | ||||
-rw-r--r-- | 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 } |