prevent log output during init
The extra output shouldn't be seen by the user, and is causing TFE to fail.
This commit is contained in:
parent
be900e8085
commit
c0b1761096
|
@ -5,7 +5,6 @@ package main
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
@ -33,7 +32,12 @@ func configDir() (string, error) {
|
||||||
func homeDir() (string, error) {
|
func homeDir() (string, error) {
|
||||||
// First prefer the HOME environmental variable
|
// First prefer the HOME environmental variable
|
||||||
if home := os.Getenv("HOME"); home != "" {
|
if home := os.Getenv("HOME"); home != "" {
|
||||||
log.Printf("[DEBUG] Detected home directory from env var: %s", home)
|
|
||||||
|
// FIXME: homeDir gets called from globalPluginDirs during init, before
|
||||||
|
// the logging is setup. We should move meta initializtion outside of
|
||||||
|
// init, but in the meantime we just need to silence this output.
|
||||||
|
//log.Printf("[DEBUG] Detected home directory from env var: %s", home)
|
||||||
|
|
||||||
return home, nil
|
return home, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue