|
From: <gi...@us...> - 2011-10-26 06:01:46
|
Revision: 2381
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2381&view=rev
Author: gikidy
Date: 2011-10-26 06:01:39 +0000 (Wed, 26 Oct 2011)
Log Message:
-----------
Not print trace stack while tool encounter build failure.
Signed-off-by: gikidy
Reviewed-by: lgao4
Modified Paths:
--------------
trunk/BaseTools/Source/Python/GenFds/GenFds.py
trunk/BaseTools/Source/Python/build/build.py
Modified: trunk/BaseTools/Source/Python/GenFds/GenFds.py
===================================================================
--- trunk/BaseTools/Source/Python/GenFds/GenFds.py 2011-10-26 05:55:35 UTC (rev 2380)
+++ trunk/BaseTools/Source/Python/GenFds/GenFds.py 2011-10-26 06:01:39 UTC (rev 2381)
@@ -278,7 +278,8 @@
ExtraData="Please send email to edk...@li... for help, attaching following call stack trace!\n",
RaiseError=False
)
- EdkLogger.quiet(traceback.format_exc())
+ if Options.debug != None:
+ EdkLogger.quiet(traceback.format_exc())
ReturnCode = CODE_ERROR
return ReturnCode
Modified: trunk/BaseTools/Source/Python/build/build.py
===================================================================
--- trunk/BaseTools/Source/Python/build/build.py 2011-10-26 05:55:35 UTC (rev 2380)
+++ trunk/BaseTools/Source/Python/build/build.py 2011-10-26 06:01:39 UTC (rev 2381)
@@ -1817,8 +1817,8 @@
if MyBuild != None:
# for multi-thread build exits safely
MyBuild.Relinquish()
- #if Option != None and Option.debug != None:
- EdkLogger.quiet("(Python %s on %s) " % (platform.python_version(), sys.platform) + traceback.format_exc())
+ if Option != None and Option.debug != None:
+ EdkLogger.quiet("(Python %s on %s) " % (platform.python_version(), sys.platform) + traceback.format_exc())
ReturnCode = X.args[0]
except Warning, X:
# error from Fdf parser
@@ -1853,7 +1853,8 @@
ExtraData="\n(Please send email to edk...@li... for help, attaching following call stack trace!)\n",
RaiseError=False
)
- EdkLogger.quiet("(Python %s on %s) " % (platform.python_version(), sys.platform) + traceback.format_exc())
+ if Option != None and Option.debug != None:
+ EdkLogger.quiet("(Python %s on %s) " % (platform.python_version(), sys.platform) + traceback.format_exc())
ReturnCode = CODE_ERROR
finally:
Utils.Progressor.Abort()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|