From d8ee553254a4cba7b3311bdc16d1185486b0efd2 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Tue, 8 Sep 2015 11:36:50 -0400 Subject: Fix up comments on filter --- Foundation/GTMLogger.h | 4 ++-- Foundation/GTMLogger.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Foundation') diff --git a/Foundation/GTMLogger.h b/Foundation/GTMLogger.h index e71d56d..a776922 100644 --- a/Foundation/GTMLogger.h +++ b/Foundation/GTMLogger.h @@ -442,9 +442,9 @@ typedef enum { // Log Filters // -// Protocol to be imlemented by a GTMLogFilter instance. +// Protocol to be implemented by a GTMLogFilter instance. @protocol GTMLogFilter -// Returns YES if |msg| at |level| should be filtered out; NO otherwise. +// Returns YES if |msg| at |level| should be logged; NO otherwise. - (BOOL)filterAllowsMessage:(NSString *)msg level:(GTMLoggerLevel)level; @end // GTMLogFilter diff --git a/Foundation/GTMLogger.m b/Foundation/GTMLogger.m index 90fce3e..7c2a543 100644 --- a/Foundation/GTMLogger.m +++ b/Foundation/GTMLogger.m @@ -97,7 +97,7 @@ static GTMLogger *gSharedLogger = nil; // Don't trust NSFileHandle not to throw @try { - GTMLogBasicFormatter *formatter = [[[GTMLogBasicFormatter alloc] init] + GTMLogBasicFormatter *formatter = [[[GTMLogBasicFormatter alloc] init] autorelease]; GTMLogger *stdoutLogger = [self loggerWithWriter:[NSFileHandle fileHandleWithStandardOutput] -- cgit v1.2.3