- "Beautify" debug printout from Python policy manager
- Added support for resource policies in textual frontend git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1064 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
f7b440d53a
commit
0c02a29f8b
7 changed files with 103 additions and 68 deletions
|
@ -122,7 +122,7 @@ PythonCPUPolicyManager::collect_policies()
|
|||
if (dot_py.match(*file_it))
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
std::clog << "\t" << *file_it << " is a valid Python script. Attempting to load... ";
|
||||
std::clog << *file_it << " appears to be a Python script. Attempting to load..." << std::endl;
|
||||
#endif
|
||||
//strip extension
|
||||
std::string policy_name = (*file_it).substr(0, (*file_it).size() - 3);
|
||||
|
@ -132,10 +132,6 @@ PythonCPUPolicyManager::collect_policies()
|
|||
PythonCPUPolicy *pypolicy = new PythonCPUPolicy(policy_name.c_str());
|
||||
|
||||
_policies.push_back(pypolicy);
|
||||
|
||||
#ifndef NDEBUG
|
||||
std::clog << "OK\n";
|
||||
#endif
|
||||
}
|
||||
catch (const MalformedPolicyException& e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue