Skip to content

Commit bb4bb51

Browse files
committed
Proper logging
1 parent 35cad24 commit bb4bb51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/setting/setting.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,14 @@ func getAppPath() (string, error) {
458458
if len(split) >= 3 {
459459
oldAppPath := appPath
460460
split[len(split)-2] = "current"
461-
newAppPath := strings.Join(split, "-")
461+
newAppPath := strings.Join(split, "/")
462462
appPath, err = exec.LookPath(newAppPath)
463463
if err != nil {
464464
appPath = oldAppPath
465-
log.error("Could not change AppPath from %s to %s while running in snap. Hooks for new repositories may fail after snap upgrades.", oldAppPath, newAppPath)
465+
log.Error("Could not change AppPath from %s to %s while running in snap. Hooks for new repositories may fail after snap upgrades.", oldAppPath, newAppPath)
466466
} else {
467467
appPath = newAppPath
468-
log.debug("Apppath changed from %s to %s because we are running in snap.", oldAppPath, newAppPath)
468+
log.Info("AppPath changed from %s to %s because we are running in snap.", oldAppPath, newAppPath)
469469
}
470470
}
471471
}

0 commit comments

Comments
 (0)