Use ooni/probe-engine: episode 1 (#42)
This commit is contained in:
parent
eb4fec2f21
commit
df629237be
15 changed files with 147 additions and 322 deletions
|
|
@ -82,15 +82,15 @@ func init() {
|
|||
if *bouncerURL != "" {
|
||||
ctx.Config.Advanced.BouncerURL = *bouncerURL
|
||||
}
|
||||
log.Debugf("Using collector %s", ctx.Config.Advanced.CollectorURL)
|
||||
log.Debugf("Using bouncer %s", ctx.Config.Advanced.CollectorURL)
|
||||
log.Debugf("Using collector: %s", ctx.Config.Advanced.CollectorURL)
|
||||
log.Debugf("Using bouncer: %s", ctx.Config.Advanced.CollectorURL)
|
||||
|
||||
err = ctx.MaybeLocationLookup()
|
||||
if err != nil {
|
||||
log.WithError(err).Error("Failed to lookup the location of the probe")
|
||||
return err
|
||||
}
|
||||
network, err := database.CreateNetwork(ctx.DB, ctx.Location)
|
||||
network, err := database.CreateNetwork(ctx.DB, ctx.Session.Location)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("Failed to create the network row")
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue