move the debug logs to gateway
archive debug log and send to gw