Menu

Commit [r873]  Maximize  Restore  History

log with message of exception

hotzst 2008-11-25

changed /ch.sahits.codegen.core/src/ch/sahits/codegen/core/Logging.java
/ch.sahits.codegen.core/src/ch/sahits/codegen/core/Logging.java Diff Switch to side-by-side view
--- a/ch.sahits.codegen.core/src/ch/sahits/codegen/core/Logging.java
+++ b/ch.sahits.codegen.core/src/ch/sahits/codegen/core/Logging.java
@@ -31,14 +31,14 @@
 	 * @param e Throwable to be logged
 	 */
 	public static void log(Throwable e){
-		JavaPlugin.log(new Status(IStatus.ERROR, pluginId , IJavaStatusConstants.INTERNAL_ERROR, "", e));	 //$NON-NLS-1$
+		JavaPlugin.log(new Status(IStatus.ERROR, pluginId , IJavaStatusConstants.INTERNAL_ERROR, e.getMessage(), e));	 //$NON-NLS-1$
 	}
 	/**
 	 * Add an error to the warning Log.
 	 * @param e Throwable to be logged
 	 */
 	public static void logWarning(Throwable e){
-		JavaPlugin.log(new Status(IStatus.WARNING, pluginId , IJavaStatusConstants.INTERNAL_ERROR, "", e));	 //$NON-NLS-1$
+		JavaPlugin.log(new Status(IStatus.WARNING, pluginId , IJavaStatusConstants.INTERNAL_ERROR, e.getMessage(), e));	 //$NON-NLS-1$
 	}
 	/**
 	 * Add an error to the error Log.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.