[TYPO3-core] RFC: Bug #8182: Fatal error on calling sysLog() of lock object if locking method is unknown

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Apr 21 17:14:59 CEST 2008


Oliver Hader schrieb:
> This is a SVN patch request.
> 
> Problem:
> If the front-end locking is set to an undefined method, e.g. 
> "semaphoreVerySpecial", normally this should produce an entry in sysLog. 
> But the $lockObj is not available since an exception was thrown there.
> 
> Solution:
> Use t3lib_div::sysLog() instead.
> 
> Comments:
> I'm going to commit this tomorrow (April 22) if nobody objects.

Ok, but please make it 'Locking: failed to acquire lock:'

Masi

PS: Maybe instead of $lockObj->sysLog('Acquired lock') it could be 
'Locking: lock acquired', to use the same message style in all three 
occurences.


More information about the TYPO3-team-core mailing list