Fixed verbose logging condition
This commit is contained in:
@@ -17,6 +17,7 @@ const (
|
|||||||
var waitTime int
|
var waitTime int
|
||||||
var isVerbose bool
|
var isVerbose bool
|
||||||
var maxTime int
|
var maxTime int
|
||||||
|
var logFile string
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
//* Parse the flags
|
//* Parse the flags
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ func marcarPresenca(ctx context.Context) error {
|
|||||||
chromedp.WaitVisible(menuPresencas))
|
chromedp.WaitVisible(menuPresencas))
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if isVerbose {
|
if isVerbose && logFile == "" {
|
||||||
log.Println("Navigation menu is visible!")
|
log.Println("Navigation menu is visible!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user