From d420701522990dd7c55bda7ea1e070254e9dcd13 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 8 Apr 2008 23:48:48 -0500 Subject: Making the log messages around caching better. --- lib/puppet/indirector/indirection.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/puppet/indirector/indirection.rb b/lib/puppet/indirector/indirection.rb index 56cd687af..536735c21 100644 --- a/lib/puppet/indirector/indirection.rb +++ b/lib/puppet/indirector/indirection.rb @@ -178,9 +178,9 @@ class Puppet::Indirector::Indirection # See if our instance is in the cache and up to date. if cache? and cached = cache.find(request) if cached.expired? - Puppet.info "Cached %s %s expired at %s; not using" % [self.name, request.key, cached.expiration] + Puppet.info "Not using expired %s for %s from cache; expired at %s" % [self.name, request.key, cached.expiration] else - Puppet.debug "Using cached %s %s" % [self.name, request.key] + Puppet.debug "Using cached %s for %s" % [self.name, request.key] return cached end end @@ -189,7 +189,7 @@ class Puppet::Indirector::Indirection if result = terminus.find(request) result.expiration ||= self.expiration if cache? - Puppet.info "Caching %s %s" % [self.name, request.key] + Puppet.info "Caching %s for %s" % [self.name, request.key] cached_request = request.clone cached_request.instance = result cache.save(cached_request) -- cgit