use fastly::{Error, Request, Response};
use log_fastly;
use log;
#[fastly::main]
fn main(req: Request) -> Result<Response, Error> {
log_fastly::init_simple("my_endpoint_name", log::LevelFilter::Info);
log::info!("{} {}", req.get_url(), req.get_client_ip_addr().unwrap());
let beresp = req.send("origin_0")?;
Ok(beresp)
}