chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peberl...@apache.org
Subject svn commit: r1496415 - in /chemistry/objectivecmis/trunk/ObjectiveCMIS: ObjectiveCMIS-Prefix.pch Utils/CMISHttpUploadRequest.m Utils/CMISLog.h
Date Tue, 25 Jun 2013 11:13:20 GMT
Author: peberlein
Date: Tue Jun 25 11:13:19 2013
New Revision: 1496415

URL: http://svn.apache.org/r1496415
Log:
Moved CMISLog macros to .pch to make it is easier for consumers to replace the default implementation
with their own

Modified:
    chemistry/objectivecmis/trunk/ObjectiveCMIS/ObjectiveCMIS-Prefix.pch
    chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
    chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISLog.h

Modified: chemistry/objectivecmis/trunk/ObjectiveCMIS/ObjectiveCMIS-Prefix.pch
URL: http://svn.apache.org/viewvc/chemistry/objectivecmis/trunk/ObjectiveCMIS/ObjectiveCMIS-Prefix.pch?rev=1496415&r1=1496414&r2=1496415&view=diff
==============================================================================
--- chemistry/objectivecmis/trunk/ObjectiveCMIS/ObjectiveCMIS-Prefix.pch (original)
+++ chemistry/objectivecmis/trunk/ObjectiveCMIS/ObjectiveCMIS-Prefix.pch Tue Jun 25 11:13:19
2013
@@ -23,3 +23,14 @@
 #ifdef __OBJC__
     #import <Foundation/Foundation.h>
 #endif
+
+
+/**
+ * log macros
+ */
+#define CMISLogError(...)   [[CMISLog sharedInstance] logError:__VA_ARGS__]
+#define CMISLogWarning(...) [[CMISLog sharedInstance] logWarning:__VA_ARGS__]
+#define CMISLogInfo(...)    [[CMISLog sharedInstance] logInfo:__VA_ARGS__]
+#define CMISLogDebug(...)   [[CMISLog sharedInstance] logDebug:__VA_ARGS__]
+#define CMISLogTrace(...)   [[CMISLog sharedInstance] logTrace:__VA_ARGS__]
+

Modified: chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
URL: http://svn.apache.org/viewvc/chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m?rev=1496415&r1=1496414&r2=1496415&view=diff
==============================================================================
--- chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m (original)
+++ chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m Tue Jun 25 11:13:19
2013
@@ -195,7 +195,6 @@ authenticationProvider:(id<CMISAuthentic
             NSMutableDictionary *headers = [NSMutableDictionary dictionaryWithDictionary:self.additionalHeaders];
             [headers setValue:[NSString stringWithFormat:@"%llu", self.encodedLength] forKey:@"Content-Length"];
             self.additionalHeaders = [NSDictionary dictionaryWithDictionary:headers];
-//            [self.encoderStream open];
         }
     }
     else
@@ -461,8 +460,9 @@ totalBytesExpectedToWrite:(NSInteger)tot
 
 - (void)stopSendWithStatus:(NSString *)statusString
 {
-    if(nil != statusString)
-        CMISLogDebug([NSString stringWithFormat:@"Upload request terminated: Message is %@",
statusString]);
+    if (nil != statusString) {
+        CMISLogDebug(@"Upload request terminated: Message is %@", statusString);
+    }
     self.bufferOffset = 0;
     self.bufferLimit  = 0;
     self.dataBuffer = nil;

Modified: chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISLog.h
URL: http://svn.apache.org/viewvc/chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISLog.h?rev=1496415&r1=1496414&r2=1496415&view=diff
==============================================================================
--- chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISLog.h (original)
+++ chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISLog.h Tue Jun 25 11:13:19 2013
@@ -13,15 +13,6 @@
  */
 
 /**
- * Convenience macros
- */
-#define CMISLogError(...)   [[CMISLog sharedInstance] logError:__VA_ARGS__]
-#define CMISLogWarning(...) [[CMISLog sharedInstance] logWarning:__VA_ARGS__]
-#define CMISLogInfo(...)    [[CMISLog sharedInstance] logInfo:__VA_ARGS__]
-#define CMISLogDebug(...)   [[CMISLog sharedInstance] logDebug:__VA_ARGS__]
-#define CMISLogTrace(...)   [[CMISLog sharedInstance] logTrace:__VA_ARGS__]
-
-/**
  * Default logging level
  *
  * The default logging level is Info for release builds and Debug for debug builds.



Mime
View raw message