From 90501cfcc53d8ff36297203d6e8e0653da98f7d1 Mon Sep 17 00:00:00 2001 From: Mark Dittmer Date: Mon, 17 Sep 2018 13:50:48 -0400 Subject: [PATCH] Fix AppEngine builds `go build -tags appengine [...]` currently yields: ``` .../github.com/sirupsen/logrus/text_formatter.go:84:4: undefined: initTerminal ``` This change implements `initTerminal` for AppEngine builds. --- terminal_appengine.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 terminal_appengine.go diff --git a/terminal_appengine.go b/terminal_appengine.go new file mode 100644 index 0000000..2f34402 --- /dev/null +++ b/terminal_appengine.go @@ -0,0 +1,11 @@ +// Based on ssh/terminal: +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build appengine + +package logrus + +func initTerminal(w io.Writer) { +}