mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
misc: added more debug logs (ref #357)
This commit is contained in:
parent
a95ae94957
commit
236a9940d9
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ func FindGateway(iface *Endpoint) (*Endpoint, error) {
|
|||
|
||||
output, err := core.Exec(IPv4RouteCmd, IPv4RouteCmdOpts)
|
||||
if err != nil {
|
||||
Debug("FindGateway(%s): core.Exec failed with %s", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
@ -42,5 +43,6 @@ func FindGateway(iface *Endpoint) (*Endpoint, error) {
|
|||
}
|
||||
}
|
||||
|
||||
Debug("FindGateway(%s): nothing found :/", iface.Name())
|
||||
return nil, ErrNoGateway
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue