beam/examples/beamsh: rename 'log' to 'logger' to avoid conflict with stdout/stderr

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes 2014-03-31 12:45:39 -07:00
parent c92abca6c7
commit ae0b194839

View file

@ -242,7 +242,7 @@ func Handlers() (*beam.UnixConn, error) {
} }
func GetHandler(name string) Handler { func GetHandler(name string) Handler {
if name == "log" { if name == "logger" {
return func(args []string, in beam.Receiver, out beam.Sender) { return func(args []string, in beam.Receiver, out beam.Sender) {
var tasks sync.WaitGroup var tasks sync.WaitGroup
stdout, err := beam.SendPipe(out, data.Empty().Set("cmd", "log", "stdout").Set("fromcmd", args...).Bytes()) stdout, err := beam.SendPipe(out, data.Empty().Set("cmd", "log", "stdout").Set("fromcmd", args...).Bytes())