fix(i/t/tor.go): show correct command line (#673)
While there, ensure that we print a warning if we cannot find the correct tor binary. Work part of https://github.com/ooni/probe/issues/1917.
This commit is contained in:
parent
2a566f2046
commit
4d50dd6d54
4 changed files with 14 additions and 6 deletions
|
|
@ -35,7 +35,7 @@ type Config struct {
|
|||
|
||||
// Logger is the optional logger to use. If empty we use a default
|
||||
// implementation that does not emit any output.
|
||||
Logger model.InfoLogger
|
||||
Logger model.Logger
|
||||
|
||||
// TorArgs contains the optional arguments that you want us to pass
|
||||
// to the tor binary when invoking it. By default we do not
|
||||
|
|
@ -76,7 +76,7 @@ type Config struct {
|
|||
}
|
||||
|
||||
// logger returns the logger to use.
|
||||
func (c *Config) logger() model.InfoLogger {
|
||||
func (c *Config) logger() model.Logger {
|
||||
if c.Logger != nil {
|
||||
return c.Logger
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue