// +build OMIT
package main

import (
	"fmt"

	_ "v.io/core/veyron/profiles"
	"v.io/core/veyron2/rt"

	"pingpong"
)

func main() {
	runtime, err := rt.New()
	if err != nil {
		panic(err)
	}
	defer runtime.Cleanup()

	log := runtime.Logger()

	s := pingpong.PingPongClient("pingpong")
	pong, err := s.Ping(runtime.NewContext(), "PING")
	if err != nil {
		log.Fatal("error pinging: ", err)
	}
	fmt.Println(pong)
}

// +build OMIT
package main

import (
	"fmt"

	_ "v.io/core/veyron/profiles"
	"v.io/core/veyron2"
	"v.io/core/veyron2/rt"

	"pingpong"
)

func main() {
	runtime, err := rt.New()
	if err != nil {
		panic(err)
	}
	defer runtime.Cleanup()
	ctx := runtime.NewContext()
	log := veyron2.GetLogger(ctx)

	s := pingpong.PingPongClient("pingpong")
	pong, err := s.Ping(runtime.NewContext(), "PING")
	if err != nil {
		log.Fatal("error pinging: ", err)
	}
	fmt.Println(pong)
}

Update playground test to not use the deprecated rt.Logger() method.
TBR: Update playground test to not use the deprecated rt.Logger() method.

Change-Id: I91ca68efffbfb756d2bf1cf36aa7b14fbf87aad2
