Changeset 12:a3f5a59a5227 in rrlib_util


Ignore:
Timestamp:
07.01.2011 15:24:25 (9 years ago)
Author:
Jens Wettach <wettach@…>
Branch:
default
Phase:
public
Convert:
svn:dcce5f72-5200-4218-9373-75d9081937af/trunk@13
Message:

adjusted debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sFileIOUtils.cpp

    r9 r12  
    442442 
    443443  for_each(tokens.begin(), tokens.end(), sStringUtils::Trim<std::string>()); 
    444   RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG, "sFileIOUtils::HostToIpViaHost() >>> got %d tokens:\n", tokens.size()); 
    445   copy(tokens.begin(), tokens.end(), std::ostream_iterator<std::string> (RRLIB_LOG_STREAM(rrlib::logging::eLL_DEBUG), "\n")); 
     444  RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG_VERBOSE_1, "sFileIOUtils::HostToIpViaHost() >>> got %d tokens:\n", tokens.size()); 
     445  copy(tokens.begin(), tokens.end(), std::ostream_iterator<std::string> (RRLIB_LOG_STREAM(rrlib::logging::eLL_DEBUG_VERBOSE_1), "\n")); 
    446446 
    447447  assert(tokens.size() == 4); 
     
    597597bool sFileIOUtils::CheckAndGetFile(const std::string &file_name, std::string &full_local_file_name, const std::string& resource_repository, const std::string& resource_server, const std::string& local_resource_directory, const std::string& server_resource_directory, bool use_cache) 
    598598{ 
    599   RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG, "sFileIOUtils::CheckAndGetFile() >>> started with local_resource_directory <%s>, resource_repository <%s>, file_name <%s>, resource_server <%s>, server_resource_directory <%s>\n", local_resource_directory.c_str(), resource_repository.c_str(), file_name.c_str(), resource_server.c_str(), server_resource_directory.c_str()); 
     599  RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG_VERBOSE_1, "sFileIOUtils::CheckAndGetFile() >>> started with local_resource_directory <%s>, resource_repository <%s>, file_name <%s>, resource_server <%s>, server_resource_directory <%s>\n", local_resource_directory.c_str(), resource_repository.c_str(), file_name.c_str(), resource_server.c_str(), server_resource_directory.c_str()); 
    600600 
    601601  //!##################################################################################################### 
     
    618618  full_local_file_name = "./" + resource_repository + file_name; 
    619619 
    620   RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG, "sFileIOUtils::CheckAndGetFile() >>> 1. check: trying to load <%s>\n", full_local_file_name.c_str()); 
     620  RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG_VERBOSE_1, "sFileIOUtils::CheckAndGetFile() >>> 1. check: trying to load <%s>\n", full_local_file_name.c_str()); 
    621621  ifstream try_1(full_local_file_name.c_str()); 
    622622  if (try_1) 
     
    641641    full_local_file_name = (expanded_local_resource_directory + resource_repository + file_name); 
    642642 
    643     RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG, "sFileIOUtils::CheckAndGetFile() >>> 2. check: trying to load <%s>\n", full_local_file_name.c_str()); 
     643    RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG_VERBOSE_1, "sFileIOUtils::CheckAndGetFile() >>> 2. check: trying to load <%s>\n", full_local_file_name.c_str()); 
    644644    ifstream try_2(full_local_file_name.c_str()); 
    645645    if (try_2) 
     
    659659      { 
    660660        local_host = sFileIOUtils::cached_local_host; 
    661         RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG, "sFileIOUtils::CheckAndGetFile() >>> retrieved local_host <%s> from cache\n", local_host.c_str()); 
     661        RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG_VERBOSE_1, "sFileIOUtils::CheckAndGetFile() >>> retrieved local_host <%s> from cache\n", local_host.c_str()); 
    662662      } 
    663663      else 
     
    676676        { 
    677677          server_ip_address = pos->second; 
    678           RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG, "sFileIOUtils::CheckAndGetFile() >>> retrieved ip address <%s> of host <%s> from cache\n", server_ip_address.c_str(), server.c_str()); 
     678          RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG_VERBOSE_1, "sFileIOUtils::CheckAndGetFile() >>> retrieved ip address <%s> of host <%s> from cache\n", server_ip_address.c_str(), server.c_str()); 
    679679        } 
    680680        else 
    681681        { 
    682682          server_ip_address = inet_ntoa(sFileIOUtils::HostToIp(server)); 
    683           RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG, "sFileIOUtils::CheckAndGetFile() >>> got ip address <%s> of host <%s>\n", server_ip_address.c_str(), server.c_str()); 
     683          RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG_VERBOSE_1, "sFileIOUtils::CheckAndGetFile() >>> got ip address <%s> of host <%s>\n", server_ip_address.c_str(), server.c_str()); 
    684684 
    685685          if (server_ip_address == "0.0.0.0") 
     
    698698      if (server != "")   //&& server != local_host) 
    699699      { 
    700         RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG, "sFileIOUtils::CheckAndGetFile() >>> 3. check: trying to rsync <%s:%s> to <%s> \n", server_ip_address.c_str(), (server_resource_directory + resource_repository + file_name).c_str(), expanded_local_resource_directory.c_str()); 
     700        RRLIB_LOG_MESSAGE(rrlib::logging::eLL_DEBUG_VERBOSE_1, "sFileIOUtils::CheckAndGetFile() >>> 3. check: trying to rsync <%s:%s> to <%s> \n", server_ip_address.c_str(), (server_resource_directory + resource_repository + file_name).c_str(), expanded_local_resource_directory.c_str()); 
    701701 
    702702        // rsync from <resource_server:server_resource_directory + resource_repository> 
Note: See TracChangeset for help on using the changeset viewer.