Ajax logger flushes logs when other ajax calls are made