Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77149487
DrydockSlotLockFailureLogType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 12, 18:09
Size
579 B
Mime Type
text/x-php
Expires
Wed, Aug 14, 18:09 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19823254
Attached To
rPH Phabricator
DrydockSlotLockFailureLogType.php
View Options
<?php
final
class
DrydockSlotLockFailureLogType
extends
DrydockLogType
{
const
LOGCONST
=
'core.resource.slot-lock.failure'
;
public
function
getLogTypeName
()
{
return
pht
(
'Slot Lock Failure'
);
}
public
function
getLogTypeIcon
(
array
$data
)
{
return
'fa-lock yellow'
;
}
public
function
renderLog
(
array
$data
)
{
$locks
=
idx
(
$data
,
'locks'
,
array
());
if
(
$locks
)
{
return
pht
(
'Failed to acquire slot locks: %s.'
,
implode
(
', '
,
array_keys
(
$locks
)));
}
else
{
return
pht
(
'Failed to acquire slot locks.'
);
}
}
}
Event Timeline
Log In to Comment