log messages moved to logConn
This commit is contained in:
parent
163dee0389
commit
d4ef1561d4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user