More api debug logging