Slightly less verbose log messages.
This commit is contained in:
parent
bc3f3210d7
commit
0ae3de2a0e
@ -63,7 +63,7 @@
|
||||
([icao lat lon]
|
||||
(screenshot-aircraft icao lat lon {}))
|
||||
([icao lat lon options]
|
||||
(log-info "Taking screenshot of aircraft %s at %s %s" icao lat lon)
|
||||
(log-info "%s Taking screenshot of aircraft at %s %s" icao lat lon)
|
||||
(let [icao-selector (gstring/format "//td[contains(., '%s')]"
|
||||
(string/upper-case icao))
|
||||
launch-options {:headless (get options :headless? true)
|
||||
@ -83,7 +83,7 @@
|
||||
(.setUserAgent page user-agent))
|
||||
(log-debug "Navigating")
|
||||
(let [url (tar1090-url icao options)]
|
||||
(log-info "Getting screenshot at url %s with zoom %s" url (or (:zoom options) 14))
|
||||
(log-info "%s Getting screenshot at url %s with zoom %s" icao url (or (:zoom options) 14))
|
||||
(p/all [(.waitForNavigation page)
|
||||
(.goto page
|
||||
url
|
||||
|
Loading…
Reference in New Issue
Block a user