fix: use debug for logging pwd

This commit is contained in:
Jan De Dobbeleer 2022-01-20 14:28:45 +01:00 committed by Jan De Dobbeleer
parent fc456da107
commit d75f6e30aa
2 changed files with 2 additions and 2 deletions

View file

@ -227,7 +227,7 @@ func (env *environment) getenv(key string) string {
func (env *environment) pwd() string {
defer env.trace(time.Now(), "pwd")
defer func() {
env.log(Error, "pwd", env.cwd)
env.log(Debug, "pwd", env.cwd)
}()
if env.cwd != "" {
return env.cwd

View file

@ -56,7 +56,7 @@ func (env *environment) isRunningAsRoot() bool {
func (env *environment) homeDir() string {
home := os.Getenv("HOME")
defer func() {
env.log(Error, "homeDir", home)
env.log(Debug, "homeDir", home)
}()
if len(home) > 0 {
return home