Skip to content

Commit d079692

Browse files
committed
Mute debug log by default
1 parent 035cd09 commit d079692

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

process/coffee_machine_process.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ var (
4343
stdoutLog = log.New(os.Stderr, "< ", 0)
4444
)
4545

46+
func init() {
47+
// debug log is muted by default
48+
debugLog.SetOutput(io.Discard)
49+
}
50+
4651
var errTimeout = fmt.Errorf("timeout while reading response from coffee machine")
4752

4853
// LangImplPathKey is the environment variable key used to specify the path to the language implementation to run
@@ -70,7 +75,7 @@ type P struct {
7075

7176
// NewCoffeeMachineProcess creates (but does not start) a new process P
7277
func NewCoffeeMachineProcess() (*P, error) {
73-
infoLog.Println("creating Coffee Machine Process")
78+
infoLog.Println("creating coffee machine process")
7479

7580
langImplPath := os.Getenv(LangImplPathKey)
7681

0 commit comments

Comments
 (0)