log messages moved to logConn

This commit is contained in:
farhan 2021-02-13 02:45:24 +00:00
parent 163dee0389
commit d4ef1561d4

View File

@ -67,11 +67,11 @@ func handleClient(commandClient net.Conn) {
case "status":
responseback.Message = "Ok"
case "add":
logInfo("Manually added instance: " + commandmap.Endpoint)
logConn("Manually added instance: " + commandmap.Endpoint)
ri_mutex.Lock()
_, exists := runninginstances[commandmap.Endpoint]
if exists == true {
logInfo("Already exists: " + commandmap.Endpoint)
logConn("Already exists: " + commandmap.Endpoint)
responseback.Message = "Exists: " + commandmap.Endpoint
} else {
responseback.Message = "Adding: " + commandmap.Endpoint