further log cleanings

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2235 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-02-07 23:01:46 +00:00
parent a433eb6abd
commit 5aff139382
5 changed files with 86 additions and 89 deletions

View file

@ -504,7 +504,9 @@ bool p3Config::saveConfiguration()
if(!written)
return false ;
std::cerr << "renaming " << fnametmp.c_str() << " to " << fname.c_str() << std::endl ;
#ifdef CONFIG_DEBUG
std::cerr << "renaming " << fnametmp.c_str() << " to " << fname.c_str() << std::endl;
#endif
if(!RsDirUtil::renameFile(fnametmp,fname))
{
@ -517,8 +519,9 @@ bool p3Config::saveConfiguration()
getPqiNotify()->AddSysMessage(0, RS_SYS_WARNING, "File rename error", "Error while renaming file " + fname + ": got error "+errlog.str());
return false ;
}
#ifdef CONFIG_DEBUG
std::cerr << "Successfully wrote p3config file " << fname.c_str() << std::endl ;
#endif
/* else okay */
return true;
}