improve re variable
delete unused log
修改获取metadata的时机，提升waf性能