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