fixing bug with config generation, started fixing add command, next commit command
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user