Skip to content

Commit

Permalink
Merge pull request #364 from commandtab/make_comments_info
Browse files Browse the repository at this point in the history
Make 'comment found' entries log at INFO level
  • Loading branch information
tomaz committed Jun 29, 2013
2 parents aa5aab6 + 7c481a0 commit 0dd09b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Common/GBLog.h
Expand Up @@ -76,6 +76,7 @@ void GBLogUpdateResult(NSInteger result);
// Macros that store given file/line info. Mostly used for better Xcode integration!
#define GBLogXError(source,frmt,...) { [DDLog storeFilename:[source fullpath] line:[source lineNumber]]; GBLogError(frmt, ##__VA_ARGS__); }
#define GBLogXWarn(source,frmt,...) { [DDLog storeFilename:[source fullpath] line:[source lineNumber]]; GBLogWarn(frmt, ##__VA_ARGS__); }
#define GBLogXInfo(source,frmt,...) { [DDLog storeFilename:[source fullpath] line:[source lineNumber]]; GBLogInfo(frmt, ##__VA_ARGS__); }

// Helper macros for logging exceptions. Note that we don't use formatting here as it would make the output unreadable
// in higher level log formats. The information is already verbose enough!
Expand Down
2 changes: 1 addition & 1 deletion Model/GBModelBase.m
Expand Up @@ -48,7 +48,7 @@ - (void)mergeDataFromObject:(id)source {
// Merge comment.
GBComment *theComment = [(GBModelBase *)source comment];
if (self.comment && theComment) {
GBLogXWarn(self.prefferedSourceInfo, @"%@: Comment found in %@ and %@!", self, self.comment.sourceInfo, theComment.sourceInfo);
GBLogXInfo(self.prefferedSourceInfo, @"%@: Comment found in %@ and %@", self, self.comment.sourceInfo, theComment.sourceInfo);
return;
}
if (!self.comment && theComment) self.comment = theComment;
Expand Down

0 comments on commit 0dd09b9

Please sign in to comment.