[pLog-svn] class/action/addtrackbackaction.class.php
Oscar Renalias
oscar at renalias.net
Mon Apr 30 17:44:44 EDT 2007
I can't reproduce this behaviour in my local instance but to make
sure that the problem is in the logging code, can you give the code
below a try?
<?php
if (!defined( "PLOG_CLASS_PATH" )) {
define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
}
include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
lt_include( PLOG_CLASS_PATH."class/logger/
loggermanager.class.php" );
$log =& LoggerManager::getLogger( "trackback" );
$log->debug( "this is a test" );
print("Done.");
?>
As you can see it's doing something very simple :-), but I want to
know if it also crashes your PHP. If it does, we'll have to start
debugging the logging code...
On 30 Apr 2007, at 21:20, Jon Daley wrote:
> Sorry, I must have said it wrong. Yes, php is crashing because
> the logging is set to null, so trackbacks aren't received unless
> logging
> is turned on.
>
> On Mon, 30 Apr 2007, Oscar Renalias wrote:
>
>> I find it hard to belive that what you describe is actually a
>> problem. The logic for adding trackbacks does not depend on whether
>> we're logging or not... Maybe PHP is crashing if the logger is set to
>> 'null' and that's why no trackback is added?
>>
>> On 30 Apr 2007, at 19:58, Jon Daley wrote:
>>
>>> Line 48 has a $logger->debug() call. I think if the trackback
>>> logger is
>>> set to null in the logging.properties.php, trackbacks aren't
>>> accepted at
>>> all. Once I turned on logging for trackbacks, the trackback was
>>> successfully received.
>>>
>>> I am not sure what the right way to fix this is. It is nice to be
>>> able to
>>> simply change "null" to "file" to turn on logging.
>>>
>>> --
>>> Jon Daley
>>> http://jon.limedaley.com/
>>>
>>> It's a recession when your neighbor loses his job;
>>> it's a depression when you lose yours.
>>> -- Harry S Truman
>>> _______________________________________________
>>> pLog-svn mailing list
>>> pLog-svn at devel.lifetype.net
>>> http://limedaley.com/mailman/listinfo/plog-svn
>>>
>>
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://limedaley.com/mailman/listinfo/plog-svn
>>
>
> --
> Jon Daley
> http://jon.limedaley.com/
>
> Everyone talks about apathy, but no one does anything about it.
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
More information about the pLog-svn
mailing list