[mono/monodevelop] 89e88cf3: [Core] Add ENABLE_RAYGUN constant.

"Cody Russell ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000141c710f358-064ceb9b-d670-4c97-8ad2-b3a29e6a294c-000000@email.amazonses.com>
   Branch: refs/heads/enable-raygun
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/commit/89e88cf39a67

   Commit: 89e88cf39a676a20d290f2858be59f391cafa788
   Author: Cody Russell <[email protected]> (bratsche)
     Date: 2013-10-17 15:36:43 GMT
      URL: https://github.com/mono/monodevelop/commit/89e88cf39a676a20d290f2858be59f391cafa788

[Core] Add ENABLE_RAYGUN constant.

Changed paths:
  M main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj
  M main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs

Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core.csproj
===================================================================
@@ -12,6 +12,9 @@
     <BuildInfo>..\..\..\build\bin\buildinfo</BuildInfo>
     <VcRevision>..\..\..\vcrevision</VcRevision>
   </PropertyGroup>
+  <PropertyGroup Condition="'$(BUILD_REVISION)' != ''">
+      <DefineConstants>$(DefineConstants);ENABLE_RAYGUN</DefineConstants>
+  </PropertyGroup>
   <Choose>
     <When Condition=" Exists('c:\Program Files\Git\bin\git.exe') ">
       <PropertyGroup>

Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
===================================================================
@@ -100,7 +100,7 @@ static LoggingService ()
 
 			timestamp = DateTime.Now;
 
-#if !DEBUG
+#if ENABLE_RAYGUN
 			string raygunKey = BrandingService.GetString ("RaygunApiKey");
 			if (raygunKey != null) {
 				raygunClient = new RaygunClient (raygunKey);


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.