added debug print

This commit is contained in:
Hugo LAMY
2022-08-14 16:17:24 +02:00
parent be499328f6
commit d663a4c7e6
3 changed files with 10 additions and 13 deletions

View File

@@ -213,18 +213,13 @@ void Client::fill_script_path(std::string &path, size_t pos)
{
std::string tmp;
/*DEBUG*/ std::cout << "\n" << B_PURPLE << "debug path dot" << RESET << "\npath:[" << path << "]\n" << "&path[pos]:[" << &path[pos] << "]\n";
if (path[0] == '.')
{
path.erase(0, 1);
pos--;
}
/*DEBUG*/ std::cout << "path:[" << path << "]\n" << "&path[pos]:[" << &path[pos] << "]\n";
_request.script.path = path.substr(0, pos);
/*DEBUG*/ std::cout << "script_path:[" << _request.script.path << "]\n";
_request.script.info = path.substr(pos);
/*DEBUG*/ std::cout << "script_info:[" << _request.script.info << "]\n" << B_PURPLE << "end debug path dot" << RESET << "\n";
}
void Client::clear()