Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
+// $Id: WOChildComponentReference.m 1 2004-08-20 10:08:27Z znek $
#include "WOChildComponentReference.h"
#include "WOComponent+private.h"
NSTimeInterval st = 0.0;
if ((parent = [_ctx component]) == nil) {
- [self logWithFormat:
- @"WARNING(%s): did not find parent component of child %@",
+ [self warnWithFormat:
+ @"%s: did not find parent component of child %@",
__PRETTY_FUNCTION__, self->childName];
return;
}
if ((child = [parent childComponentWithName:self->childName]) == nil) {
- [self logWithFormat:
- @"WARNING: did not find child component %@ of parent %@",
+ [self warnWithFormat:
+ @"did not find child component %@ of parent %@",
self->childName, [parent name]];
return;
}
if ((parent = [_ctx component]) == nil) {
[[_ctx session]
- logWithFormat:@"WARNING: did not find parent component of child %@",
+ warnWithFormat:@"did not find parent component of child %@",
self->childName];
return nil;
}
if ((child = [parent childComponentWithName:self->childName]) == nil) {
[[_ctx session]
- logWithFormat:
- @"WARNING: did not find child component %@ of parent %@",
+ warnWithFormat:
+ @"did not find child component %@ of parent %@",
self->childName, [parent name]];
return nil;
}
NSTimeInterval st = 0.0;
if ((parent = [_ctx component]) == nil) {
- [self logWithFormat:
- @"WARNING(%s): did not find parent component of child %@",
+ [self warnWithFormat:
+ @"%s: did not find parent component of child %@",
__PRETTY_FUNCTION__, self->childName];
return;
}
if ((child = [parent childComponentWithName:self->childName]) == nil) {
- [self logWithFormat:
- @"WARNING: did not find child component %@ of parent %@",
+ [self warnWithFormat:
+ @"did not find child component %@ of parent %@",
self->childName, [parent name]];
[_response appendContentString:@"<pre>[missing component: "];
[_response appendContentHTMLString:self->childName];