removed some debug messages
This commit is contained in:
parent
798eb32d64
commit
58c4ed602e
@ -17,9 +17,7 @@ var cronCmd = &cobra.Command{
|
|||||||
Use: "cron",
|
Use: "cron",
|
||||||
Short: "this command is meant to be ran via cron",
|
Short: "this command is meant to be ran via cron",
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
log.Println("setting GOMAXPROCS=1")
|
|
||||||
runtime.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))
|
client, err := ent.Open("sqlite3", fmt.Sprintf("file:%s?mode=rwc&cache=private&_fk=1", sqliteFilename))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed opening connection to sqlite: %v", err)
|
return fmt.Errorf("failed opening connection to sqlite: %v", err)
|
||||||
|
@ -34,7 +34,6 @@ func (r *Runner) Run() error {
|
|||||||
return fmt.Errorf("error getting current go version: %s", e)
|
return fmt.Errorf("error getting current go version: %s", e)
|
||||||
}
|
}
|
||||||
for _, m := range ms {
|
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))
|
fv, e := getVersionOfFile(fmt.Sprintf("%s/%s", m.RootPath, m.BinaryPath))
|
||||||
if e != nil {
|
if e != nil {
|
||||||
return fmt.Errorf("error getting version of file: %s", e)
|
return fmt.Errorf("error getting version of file: %s", e)
|
||||||
|
Loading…
Reference in New Issue
Block a user