From c046caf56e7b72843de1a6c8052dddf4506e4fd0 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 14 Apr 2017 14:32:33 +0200 Subject: [PATCH] temporarily disables drone logs from cli --- drone/build_logs.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drone/build_logs.go b/drone/build_logs.go index 2c14243e..2e6f8850 100644 --- a/drone/build_logs.go +++ b/drone/build_logs.go @@ -3,7 +3,6 @@ package main import ( "encoding/json" "fmt" - "log" "strconv" "github.com/cncd/pipeline/pipeline/rpc" @@ -11,13 +10,13 @@ import ( ) var buildLogsCmd = cli.Command{ - Name: "logs", - Usage: "show build logs", - Action: func(c *cli.Context) { - if err := buildLogs(c); err != nil { - log.Fatalln(err) - } - }, + Name: "logs", + Usage: "show build logs", + Action: buildLogsDisabled, +} + +func buildLogsDisabled(c *cli.Context) error { + return fmt.Errorf("Command temporarily disabled. See https://github.com/drone/drone/issues/2005") } func buildLogs(c *cli.Context) error {