apupier opened a new issue #1301: [Enhancement]Improve log message when image 
not available in cache
URL: https://github.com/apache/camel-k/issues/1301
 
 
   For Kit builder log, I have:
   
   ```
   INFO[0030] Resolved base name fabric8/s2i-java:3.0-java8 to 
fabric8/s2i-java:3.0-java8 
   INFO[0030] Resolved base name fabric8/s2i-java:3.0-java8 to 
fabric8/s2i-java:3.0-java8 
   INFO[0030] Downloading base image fabric8/s2i-java:3.0-java8 
   INFO[0031] Error while retrieving image from cache: getting file 
info: stat 
/kaniko/cache/sha256:9ac5acb3aa8e7e179eb1fd28cda7dac22ef7deac24f00b50cee56265fa259141:
 no such file or directory 
   INFO[0031] Downloading base image fabric8/s2i-java:3.0-java8 
   INFO[0032] Built cross stage deps: map[]                
   INFO[0032] Downloading base image fabric8/s2i-java:3.0-java8 
   INFO[0033] Error while retrieving image from cache: getting file 
info: stat 
/kaniko/cache/sha256:9ac5acb3aa8e7e179eb1fd28cda7dac22ef7deac24f00b50cee56265fa259141:
 no such file or directory 
   INFO[0033] Downloading base image fabric8/s2i-java:3.0-java8 
   INFO[0034] Executing 0 build triggers                   
   INFO[0034] Skipping unpacking as no commands require it. 
   INFO[0034] Taking snapshot of full filesystem...        
   INFO[0034] Using files from context: 
[/builder/kit-bpb3eomt28oasvk8ae70/package/context] 
   INFO[0034] ADD . /deployments                           
   INFO[0034] Taking snapshot of files... 
   ```
   
   when investigating, the message `Error while retrieving image from cache: 
getting file info: stat 
/kaniko/cache/sha256:9ac5acb3aa8e7e179eb1fd28cda7dac22ef7deac24f00b50cee56265fa259141:
 no such file or directory ` leads to think that there is a a real error. 
Unless, I miss something, I think that it is only that the file is not 
available in the cache yet. I think it would be better to turn the message in 
this sense to avoid users to focus on this an "error" during investigations.
   
   Also, I note that the message appears several times which seems a bit weird.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to