summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
839e3a4)
Generate a single log message per request with remote address,
parameters and result code.
Signed-off-by: Keith Packard <keithp@keithp.com>
private AltosJson request;
private AltosJson reply;
private AltosJson request;
private AltosJson reply;
+ private int http_status;
+
private void set_status(int status) {
private void set_status(int status) {
reply.put("status", status);
}
reply.put("status", status);
}
store_ready = new Semaphore(0);
store_ready = new Semaphore(0);
- System.out.printf("Fetching tile for %g %g %d\n", lat, lon, zoom);
-
AltosMapStore map_store = AltosMapStore.get(new AltosLatLon(lat, lon),
zoom,
AltosMapd.maptype,
AltosMapStore map_store = AltosMapStore.get(new AltosLatLon(lat, lon),
zoom,
AltosMapd.maptype,
int status;
if (map_store == null) {
int status;
if (map_store == null) {
- System.out.printf("no store?\n");
status = AltosMapTile.failed;
} else {
map_store.add_listener(this);
status = AltosMapTile.failed;
} else {
map_store.add_listener(this);
- System.out.printf("Waiting for tile\n");
-
try {
store_ready.acquire();
} catch (Exception ie) {
try {
store_ready.acquire();
} catch (Exception ie) {
+ System.out.printf("%s: %.6f %.6f %d status %d\n",
+ addr, lat, lon, zoom, http_status);
+
} catch (Exception e) {
System.out.printf("client exception %s\n", e.toString());
e.printStackTrace(System.out);
} catch (Exception e) {
System.out.printf("client exception %s\n", e.toString());
e.printStackTrace(System.out);
socket.close();
} catch (IOException ie) {
}
socket.close();
} catch (IOException ie) {
}
- System.out.printf("client done\n");