<?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>11440</bug_id>
          
          <creation_ts>2017-05-03 06:26:40 +0000</creation_ts>
          <short_desc>&apos;MockEvent&apos; object has no attribute &apos;getMessage&apos;</short_desc>
          <delta_ts>2017-06-24 05:12:59 +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>Toaster</product>
          <component>toaster</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <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>72985</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-05-03 06:26:40 +0000</bug_when>
    <thetext>Two log methods for &quot;buildinfohelper&quot; use a temporary &quot;MockEvent&quot; to call the method &quot;store_log_event()&quot;. 

However, &quot;store_log_event()&quot; expects an event of the type &quot;logging.LogRecord&quot; which has an attribute &apos;getMessage&apos; which &quot;MockEvent&quot; does not, leading to the error: 

ERROR: &apos;MockEvent&apos; object has no attribute &apos;getMessage&apos;
Traceback (most recent call last):
  File &quot;/opt/dreyna/toaster_newer/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 346, in main
    buildinfohelper.store_log_error(text)
  File &quot;/opt/dreyna/toaster_newer/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 1581, in store_log_error
    self.store_log_event(mockevent)
  File &quot;/opt/dreyna/toaster_newer/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 1628, in store_log_event
    log_information[&apos;message&apos;] = event.getMessage()
AttributeError: &apos;MockEvent&apos; object has no attribute &apos;getMessage&apos;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>