From 97a8ec01c39eba150937e15857fce1dc1517e215 Mon Sep 17 00:00:00 2001 From: hyoun jiil Date: Tue, 19 Mar 2013 12:11:04 +0900 Subject: [PATCH] [Title] fix log display [Type] Bugfix [Module] Toolchain / [Priority] Minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I74d9716db518a3c7ef58df0208396b7da4a16af8 --- src/pkg_server/client.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pkg_server/client.rb b/src/pkg_server/client.rb index fcd5ec1..1e5fadb 100644 --- a/src/pkg_server/client.rb +++ b/src/pkg_server/client.rb @@ -358,19 +358,17 @@ class Client private def get_file_from_cache(filename, pkg_checksum, pkg_size, location) downloaded_file_path = nil - @log.info "WAIT CACHE CHECK",Log::LV_USER + @log.info "Wait for cache sync",Log::LV_USER $cache_mutex.synchronize do - @log.info "ENTER CACHE CHECK",Log::LV_USER + @log.info "Entering cache sync",Log::LV_USER cached_filepath = get_cached_filepath(filename, pkg_checksum, pkg_size) - @log.info "GET CACHE #{cached_filepath}",Log::LV_USER + @log.info "Cache file path : #{cached_filepath}",Log::LV_USER if not cached_filepath.nil? then - @log.info "COPY FROM CACHE",Log::LV_USER FileUtils.cp(cached_filepath, location) - @log.info "COPY DONE",Log::LV_USER downloaded_file_path = File.join(location, File.basename(cached_filepath)) end end - @log.info "CACHE CHECK DONE",Log::LV_USER + @log.info "Cache sync done",Log::LV_USER if not downloaded_file_path.nil? and not File.exist? downloaded_file_path then downloaded_file_path = nil end -- 2.34.1