Slightly less verbose log messages.

This commit is contained in:
John Wiseman 2020-05-11 16:52:00 -07:00
parent bc3f3210d7
commit 0ae3de2a0e

View File

@ -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