MF-583 - Correct cmd/mongodb-reader HTTPServer log Info (#584)

Signed-off-by: Kai-Chu Chung <cage.chung@gmail.com>
This commit is contained in:
Kai-Chu Chung 2019-02-12 18:36:58 +08:00 committed by Aleksandar Novaković
parent 434a57d8e1
commit 351d6e7bfb
1 changed files with 1 additions and 1 deletions

View File

@ -167,5 +167,5 @@ func newService(db *mongo.Database, logger logger.Logger) readers.MessageReposit
func startHTTPServer(repo readers.MessageRepository, tc mainflux.ThingsServiceClient, port string, logger logger.Logger, errs chan error) {
p := fmt.Sprintf(":%s", port)
logger.Info(fmt.Sprintf("Mongo reader service started, exposed port %s", port))
errs <- http.ListenAndServe(p, api.MakeHandler(repo, tc, "cassandra-reader"))
errs <- http.ListenAndServe(p, api.MakeHandler(repo, tc, "mongodb-reader"))
}