removed some debug messages

This commit is contained in:
Darko Luketic 2024-01-08 17:26:08 +01:00
parent 798eb32d64
commit 58c4ed602e
2 changed files with 0 additions and 3 deletions

View File

@ -17,9 +17,7 @@ var cronCmd = &cobra.Command{
Use: "cron",
Short: "this command is meant to be ran via cron",
RunE: func(cmd *cobra.Command, args []string) error {
log.Println("setting GOMAXPROCS=1")
runtime.GOMAXPROCS(1)
log.Println("opening database file")
client, err := ent.Open("sqlite3", fmt.Sprintf("file:%s?mode=rwc&cache=private&_fk=1", sqliteFilename))
if err != nil {
return fmt.Errorf("failed opening connection to sqlite: %v", err)

View File

@ -34,7 +34,6 @@ func (r *Runner) Run() error {
return fmt.Errorf("error getting current go version: %s", e)
}
for _, m := range ms {
fmt.Println(fmt.Sprintf("%s/%s", m.RootPath, m.BinaryPath))
fv, e := getVersionOfFile(fmt.Sprintf("%s/%s", m.RootPath, m.BinaryPath))
if e != nil {
return fmt.Errorf("error getting version of file: %s", e)