diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2013-05-31 19:40:25 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2013-05-31 20:04:34 +0400 |
commit | 64359cde615d1d1b664758090eae6069f938c563 (patch) | |
tree | 0b1f612e012a01bb8faab256eacaebc43724a1cc /main/src/tools | |
parent | 331837835d61ac9194c358d96cd424b7ed164264 (diff) |
[mdtool] Always log fatal errors
Diffstat (limited to 'main/src/tools')
-rw-r--r-- | main/src/tools/mdtool/src/mdtool.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/tools/mdtool/src/mdtool.cs b/main/src/tools/mdtool/src/mdtool.cs index 9ec7c2d24f..fece250a66 100644 --- a/main/src/tools/mdtool/src/mdtool.cs +++ b/main/src/tools/mdtool/src/mdtool.cs @@ -70,9 +70,9 @@ public class MonoDevelopProcessHost pi++; logger.EnabledLevel = MonoDevelop.Core.Logging.EnabledLoggingLevel.UpToWarn; } else { - // Disable logging if verbose is not specified. Command line tools should alread be - // providing feedback using the console - logger.EnabledLevel = MonoDevelop.Core.Logging.EnabledLoggingLevel.None; + // Disable logging (except fatal errors) if verbose is not specified. Command line tools should already + // be providing feedback using the console. + logger.EnabledLevel = MonoDevelop.Core.Logging.EnabledLoggingLevel.Fatal; } string[] newArgs = new string [args.Length - 1 - pi]; @@ -85,7 +85,7 @@ public class MonoDevelopProcessHost Console.WriteLine (ex.Message); return -1; } catch (Exception ex) { - Console.WriteLine (ex); + LoggingService.LogFatalError (ex.ToString ()); return -1; } finally { try { |