<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8727</bug_id>
          
          <creation_ts>2015-11-25 16:48:59 +0000</creation_ts>
          <short_desc>fetcher: should not log errors but pass them for handling</short_desc>
          <delta_ts>2017-01-24 17:08:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aníbal Limón">anibal.limon</reporter>
          <assigned_to name="Jose Lamego">jose.a.lamego</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56784</commentid>
    <comment_count>0</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-11-25 16:48:59 +0000</bug_when>
    <thetext>When using fetcher it logs errors [1] causing a build to fail.

Fetcher is a utility module so it only need to propagate the error/exception and give the ability to the caller to handle the error/exception.

The changes needs to be evaluated for don&apos;t break code base that expect the current behavior.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/bb/fetch2/__init__.py#n1636</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70088</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-01-24 17:08:13 +0000</bug_when>
    <thetext>After some review, i figured out that the current implementation of fetcher is too close to bitbake usage so there is no way to remove logger.error from fetcher. 

The bitbake/oe-core code uses try_mirrors to start download and is the main method exposed so there is no way to remove logging internally without affect dependent code.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>