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":
|
case "status":
|
||||||
responseback.Message = "Ok"
|
responseback.Message = "Ok"
|
||||||
case "add":
|
case "add":
|
||||||
logInfo("Manually added instance: " + commandmap.Endpoint)
|
logConn("Manually added instance: " + commandmap.Endpoint)
|
||||||
ri_mutex.Lock()
|
ri_mutex.Lock()
|
||||||
_, exists := runninginstances[commandmap.Endpoint]
|
_, exists := runninginstances[commandmap.Endpoint]
|
||||||
if exists == true {
|
if exists == true {
|
||||||
logInfo("Already exists: " + commandmap.Endpoint)
|
logConn("Already exists: " + commandmap.Endpoint)
|
||||||
responseback.Message = "Exists: " + commandmap.Endpoint
|
responseback.Message = "Exists: " + commandmap.Endpoint
|
||||||
} else {
|
} else {
|
||||||
responseback.Message = "Adding: " + commandmap.Endpoint
|
responseback.Message = "Adding: " + commandmap.Endpoint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user