Changeset 861

Show
Ignore:
Timestamp:
01/26/08 13:36:40
Author:
robert
Message:

Quietened down the debug messages

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vpb/Destination.cpp

    r859 r861  
    27102710{ 
    27112711    std::string filename = _name+"_subtile"+_dataSet->getDestinationTileExtension(); 
    2712     log(osg::NOTICE,"CompositeDestination::getSubTileName()=%s",filename.c_str()); 
     2712    log(osg::INFO,"CompositeDestination::getSubTileName()=%s",filename.c_str()); 
    27132713    return filename; 
    27142714} 
     
    27262726    {  
    27272727        filename = _dataSet->getTaskName(_level,_tileX,_tileY) + std::string("/") + _name+"_subtile"+_dataSet->getDestinationTileExtension(); 
    2728         log(osg::NOTICE,"CompositeDestination::getExternalSubTileName()=%s ROOT!!",filename.c_str()); 
     2728        log(osg::INFO,"CompositeDestination::getExternalSubTileName()=%s ROOT!!",filename.c_str()); 
    27292729    } 
    27302730    else if (externalFile && isLeaf) 
    27312731    {  
    27322732        filename = std::string("../") + _dataSet->getTaskName(_level,_tileX,_tileY) + std::string("/") + _name+"_subtile"+_dataSet->getDestinationTileExtension(); 
    2733         log(osg::NOTICE,"CompositeDestination::getExternalSubTileName()=%s LEAF!!",filename.c_str()); 
     2733        log(osg::INFO,"CompositeDestination::getExternalSubTileName()=%s LEAF!!",filename.c_str()); 
    27342734    } 
    27352735    else 
    27362736    { 
    27372737        filename = _name+"_subtile"+_dataSet->getDestinationTileExtension(); 
    2738         log(osg::NOTICE,"CompositeDestination::getExternalSubTileName()=%s",filename.c_str()); 
     2738        log(osg::INFO,"CompositeDestination::getExternalSubTileName()=%s",filename.c_str()); 
    27392739    } 
    27402740     
  • trunk/src/vpb/FileUtils.cpp

    r860 r861  
    7070    if (path==0) return 0; 
    7171     
     72    vpb::log(osg::NOTICE,"mkpath(%s)",path); 
     73 
     74    // first create a list of paths that needs to be checked/created. 
    7275    std::string fullpath(path); 
    7376    typedef std::list<std::string> Directories; 
     
    9295    } 
    9396     
    94     vpb::log(osg::NOTICE,"mkpath(%s)",path); 
     97    // now check the diretories and create the onces that are required in turn. 
    9598    for(Directories::iterator itr = directories.begin(); 
    9699        itr != directories.end(); 
    97100        ++itr) 
    98101    { 
    99         vpb::log(osg::NOTICE,"  directory %s",(*itr).c_str()); 
    100  
     102        std::string& path = (*itr); 
    101103        int result = 0; 
    102         osgDB::FileType type = osgDB::fileType((*itr)); 
    103         if (type==osgDB::DIRECTORY
     104        osgDB::FileType type = osgDB::fileType(path); 
     105        if (type==osgDB::REGULAR_FILE
    104106        { 
    105             log(osg::NOTICE,"      Base Directory already created"); 
    106         }  
    107         else if (type==osgDB::REGULAR_FILE) 
    108         { 
    109             log(osg::NOTICE,"      Error cannot create directory as a conventional file already exists with that name"); 
     107            log(osg::NOTICE,"Error cannot create directory %s as a conventional file already exists with that name",path.c_str()); 
    110108            return 1; 
    111109        } 
    112         else // FILE_NOT_FOUND 
     110        else if (type==osgDB::FILE_NOT_FOUND) 
    113111        { 
    114112            // need to create directory. 
    115             result = vpb::mkdir((*itr).c_str(), mode); 
     113            result = vpb::mkdir(path.c_str(), mode); 
     114            if (result) log(osg::NOTICE,"Error could not create directory %s",path.c_str()); 
     115            else log(osg::NOTICE,"  created directory %s",path.c_str()); 
     116             
    116117            if (result) return result; 
    117118        }