Fix for "Encountered unexpected $logs cannot generate SQL log"

While using Plugin in CakePHP 2.2, sql_dump couldnt be generated due to
error: "Encountered unexpected $logs cannot generate SQL log"

Replaced $logs to $data resolved this problem