Skip to content

gleaner returns ok #265

Open
Open

Description

@valentinedwv

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"}

Activity

  1. valentinedwv commented on Aug 15, 2024

    @valentinedwv
    MemberAuthor

    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)

  2. valentinedwv commented on Aug 15, 2024

    @valentinedwv
    MemberAuthor

    no check for error return

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

  3. valentinedwv commented on Aug 15, 2024

    @valentinedwv
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions