Log only client name when adding or modifying
This commit is contained in:
		
							parent
							
								
									2fdafd34ca
								
							
						
					
					
						commit
						4fa3f01432
					
				|  | @ -509,7 +509,7 @@ func NewClient(db store.IStore) echo.HandlerFunc { | |||
| 				false, err.Error(), | ||||
| 			}) | ||||
| 		} | ||||
| 		log.Infof("Created wireguard client: %v", client) | ||||
| 		log.Infof("Created wireguard client: %v", client.Name) | ||||
| 
 | ||||
| 		return c.JSON(http.StatusOK, client) | ||||
| 	} | ||||
|  | @ -726,7 +726,7 @@ func UpdateClient(db store.IStore) echo.HandlerFunc { | |||
| 		if err := db.SaveClient(client); err != nil { | ||||
| 			return c.JSON(http.StatusInternalServerError, jsonHTTPResponse{false, err.Error()}) | ||||
| 		} | ||||
| 		log.Infof("Updated client information successfully => %v", client) | ||||
| 		log.Infof("Updated client information successfully => %v", client.Name) | ||||
| 
 | ||||
| 		return c.JSON(http.StatusOK, jsonHTTPResponse{true, "Updated client successfully"}) | ||||
| 	} | ||||
|  | @ -821,7 +821,7 @@ func RemoveClient(db store.IStore) echo.HandlerFunc { | |||
| 			return c.JSON(http.StatusInternalServerError, jsonHTTPResponse{false, "Cannot delete client from database"}) | ||||
| 		} | ||||
| 
 | ||||
| 		log.Infof("Removed wireguard client: %v", client) | ||||
| 		log.Infof("Removed wireguard client: %v", client.Name) | ||||
| 		return c.JSON(http.StatusOK, jsonHTTPResponse{true, "Client removed"}) | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue