Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72133275
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
Sun, Jul 14, 21:47
Size
579 B
Mime Type
text/x-php
Expires
Tue, Jul 16, 21:47 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
18985262
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