@implementation SOGoGroupFolder
+static NGLogger *logger = nil;
+
++ (void)initialize {
+ NGLoggerManager *lm;
+ static BOOL didInit = NO;
+
+ if (didInit) return;
+ didInit = YES;
+
+ lm = [NGLoggerManager defaultLoggerManager];
+ logger = [lm loggerForDefaultKey:@"SOGoGroupFolderDebugEnabled"];
+}
+
- (void)dealloc {
[self->uidToFolder release];
[self->folders release];
[super dealloc];
}
+/* logging */
+
+- (NGLogger *)debugLogger {
+ return logger;
+}
+
/* accessors */
- (NSArray *)uids {
- [self logWithFormat:@"ERROR: instantiated abstract Group folder class!"];
+ [self errorWithFormat:@"instantiated abstract Group folder class!"];
return nil;
}
/* create subcontext, so that we don't destroy our environment */
if ((ctx = [_ctx createSubContext]) == nil) {
- [self logWithFormat:@"ERROR: could not create SOPE subcontext!"];
+ [self errorWithFormat:@"could not create SOPE subcontext!"];
return nil;
}
result = [[ctx application] traversePathArray:path inContext:ctx
error:&error acquire:NO];
if (error != nil) {
- [self logWithFormat:@"ERROR: folder lookup failed (uid=%@): %@",
+ [self errorWithFormat:@"folder lookup failed (uid=%@): %@",
_uid, error];
return nil;
}
- [self debugWithFormat:@"Note: got folder for uid %@ path %@: %@",
- _uid, [path componentsJoinedByString:@"=>"], result];
+ if (logger)
+ [self debugWithFormat:@"Note: got folder for uid %@ path %@: %@",
+ _uid, [path componentsJoinedByString:@"=>"], result];
return result;
}
if (calClass == Nil)
calClass = NSClassFromString(@"SOGoGroupAppointmentFolder");
if (calClass == Nil) {
- [self logWithFormat:@"ERROR: missing SOGoGroupAppointmentFolder class!"];
+ [self errorWithFormat:@"missing SOGoGroupAppointmentFolder class!"];
return nil;
}
2005-03-03 Marcus Mueller <znek@mulle-kybernetik.com>
+ * UIxCalWeekListview.m: fixed compile warnings (v0.9.120)
+
* UIxCalWeekListview.m: view needs to fetch coreInfos instead of just
overviews because it needs information stored in "partmails". Fixes
SOGo Bug #1248. (v0.9.119)
</tr>
<tr bgcolor="#F5F5E9"> <!-- use CSS -->
<td align="left" width="10"><var:entity const:name="nbsp"/></td>
- <td align="right"><img
- border="0" alt=""
- src="/sogod.woa/so/ControlPanel/Products/CommonUI/Resources/corner_right.gif" /></td>
+ <td align="right"
+ ><img border="0"
+ alt=""
+ src="/sogod.woa/so/ControlPanel/Products/CommonUI/Resources/corner_right.gif"
+ /></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F5F5E9"> <!-- use CSS -->