chore: drop debug calls

This commit is contained in:
Jose Diaz-Gonzalez committed 2022-11-25 14:50:35 -05:00
1 parent fe4d80a82b
commit 55ca8e3d52
2 files changed
+2 -7

No files matched your search

+2 -2
View File
@@ -15,12 +15,12 @@ import (
func CatFile(filename string) { func CatFile(filename string) {
slice, err := FileToSlice(filename) slice, err := FileToSlice(filename)
if err != nil { if err != nil {
LogWarn(fmt.Sprintf("Error cat'ing file %s: %s", filename, err.Error())) LogDebug(fmt.Sprintf("Error cat'ing file %s: %s", filename, err.Error()))
return return
} }
for _, line := range slice { for _, line := range slice {
LogWarn(fmt.Sprintf("line: '%s'", line)) LogDebug(fmt.Sprintf("line: '%s'", line))
} }
} }
-5
View File
@@ -100,19 +100,14 @@ func getRunningState(appName string) string {
func hasProcfile(appName string) bool { func hasProcfile(appName string) bool {
procfilePath := getProcfilePath(appName) procfilePath := getProcfilePath(appName)
common.LogWarn("Checking if missing Procfile")
if common.FileExists(fmt.Sprintf("%s.%s.missing", procfilePath, os.Getenv("DOKKU_PID"))) { if common.FileExists(fmt.Sprintf("%s.%s.missing", procfilePath, os.Getenv("DOKKU_PID"))) {
common.LogWarn("Procfile is missing")
return false return false
} }
common.LogWarn("Checking for process-specific Procfile")
if common.FileExists(fmt.Sprintf("%s.%s", procfilePath, os.Getenv("DOKKU_PID"))) { if common.FileExists(fmt.Sprintf("%s.%s", procfilePath, os.Getenv("DOKKU_PID"))) {
common.LogWarn("Process-specific Procfile exists")
return true return true
} }
common.LogWarn("Checking for default Procfile")
return common.FileExists(procfilePath) return common.FileExists(procfilePath)
} }