Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gleaner returns ok #265

Open
valentinedwv opened this issue Aug 15, 2024 · 3 comments
Open

gleaner returns ok #265

valentinedwv opened this issue Aug 15, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@valentinedwv
Copy link
Member

Couple instances where gleaner returns ok on exits, when it should not.
Doing this in a container, means processes after this run in the scheduler

bad sitemap #253

bad parameters.
{"file":"/home/runner/work/gleaner/gleaner/cmd/gleaner/main.go:125","func":"main.main","level":"error","msg":"CAUTION: no matching source, did your -source VALUE match a sources.name VALUE in your config file?","time":"2024-08-15T20:40:41Z"}

@valentinedwv valentinedwv added the bug Something isn't working label Aug 15, 2024
@valentinedwv
Copy link
Member Author

valentinedwv commented Aug 15, 2024

if isFlagPassed("cfg") {
//v1, err = readConfig(viperVal, map[string]interface{}{})
v1, err = config.ReadGleanerConfig(filepath.Base(viperVal), filepath.Dir(viperVal))
if err != nil {
log.Fatal("error when reading config:", err)
}
} else {
log.Error("Gleaner must be run with a config file: -cfg CONFIGFILE")
flag.Usage()
os.Exit(0)

@valentinedwv
Copy link
Member Author

no check for error return

pkg.Cli(mc, v1, db) // move to a common call in batch.go

@valentinedwv
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants