Add debug-level logging to ajax check