package com.github.davidcarboni.thetrain.api.filter;

import com.github.davidcarboni.restolino.framework.Filter;
import org.slf4j.MDC;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.UUID;

public class RequestContextFilter implements Filter {

	@Override
	public boolean filter(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
		System.out.println("");
		/**
		 * TEMP FIX: Zebedee does not currently pass the request ID to the train so generate a new one to allow us to
		 * tie requests together.
		 */
		MDC.put("X-Request-Id", UUID.randomUUID().toString());
		return true;
	}
}

@@ -421,34 +421,8 @@
 ) %7B%0A
-%09%09System.out.println(%22%22);%0A
 %09%09/*

remove empty println