aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConsoleMessage.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPConsoleMessage.m')
-rw-r--r--Source/SPConsoleMessage.m9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPConsoleMessage.m b/Source/SPConsoleMessage.m
index 0a5c2bcf..6ada323a 100644
--- a/Source/SPConsoleMessage.m
+++ b/Source/SPConsoleMessage.m
@@ -35,24 +35,26 @@
@synthesize isError;
@synthesize messageDate;
@synthesize message;
+@synthesize messageDatabase;
@synthesize messageConnection;
/**
* Returns a new console message instance using the suppled message, date and connection.
*/
-+ (SPConsoleMessage *)consoleMessageWithMessage:(NSString *)message date:(NSDate *)date connection:(NSString *)connection
++ (SPConsoleMessage *)consoleMessageWithMessage:(NSString *)message date:(NSDate *)date connection:(NSString *)connection database:(NSString *)database
{
- return [[[SPConsoleMessage alloc] initWithMessage:message date:date connection:connection] autorelease];
+ return [[[SPConsoleMessage alloc] initWithMessage:message date:date connection:connection database:database] autorelease];
}
/**
* Initializes a new console message instance using the suppled message, date and connection.
*/
-- (id)initWithMessage:(NSString *)consoleMessage date:(NSDate *)date connection:(NSString *)connection
+- (id)initWithMessage:(NSString *)consoleMessage date:(NSDate *)date connection:(NSString *)connection database:(NSString *)database
{
if ((self = [super init])) {
[self setMessageDate:date];
[self setMessage:consoleMessage];
+ [self setMessageDatabase:database];
[self setMessageConnection:connection];
}
@@ -65,6 +67,7 @@
{
[message release], message = nil;
[messageDate release], messageDate = nil;
+ [messageDatabase release], messageDatabase = nil;
[messageConnection release], messageConnection = nil;
[super dealloc];