Merge pull request #8442 from annando/issue-8371-logging2
Issue 8371: More enhanced logging
This commit is contained in:
commit
7bc4427c09
1 changed files with 2 additions and 3 deletions
|
@ -662,10 +662,9 @@ class Photo
|
||||||
'resource-id' => $image_rid, 'uid' => $uid
|
'resource-id' => $image_rid, 'uid' => $uid
|
||||||
];
|
];
|
||||||
if (!Photo::exists($condition)) {
|
if (!Photo::exists($condition)) {
|
||||||
$condition = ['resource-id' => $image_rid];
|
$photo = self::selectFirst(['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', 'uid'], ['resource-id' => $image_rid]);
|
||||||
$photo = self::selectFirst(['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', 'uid'], $condition);
|
|
||||||
if (!DBA::isResult($photo)) {
|
if (!DBA::isResult($photo)) {
|
||||||
Logger::info('Image not found', ['condition' => $condition]);
|
Logger::info('Image not found', ['resource-id' => $image_rid]);
|
||||||
} else {
|
} else {
|
||||||
Logger::info('Mismatching permissions', ['condition' => $condition, 'photo' => $photo]);
|
Logger::info('Mismatching permissions', ['condition' => $condition, 'photo' => $photo]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue