fixing bug with config generation, started fixing add command, next commit command

This commit is contained in:
2020-07-04 22:05:02 -04:00
parent 5af55ed62e
commit c07e09d155
10 changed files with 256 additions and 44 deletions

View File

@@ -15,11 +15,11 @@ func (db *DB) CheckIfFileCurrentlyMonitored(path string) bool {
if err := db.One("Path", path, &file); err != nil {
if err.Error() != "not found" {
db.Err(err).Msg("Error finding file by path")
fmt.Printf("Not found: %s error: %s\n", path, err)
fmt.Printf("Database Error occurred: %s error: %s\n", path, err)
return false
}
db.Warn().Msg("no file found")
fmt.Printf("Not found: %s error: %s\n", path, err)
db.Warn().Msgf("%s not found in tracked database", path)
fmt.Printf("%s not found in tracked file database", path)
return false
}
fmt.Printf("Found!: %s searched: %s\n", file.Path, path)