mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
fix: use debug for logging pwd
This commit is contained in:
parent
fc456da107
commit
d75f6e30aa
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue