a little bit more explicit logging

This commit is contained in:
Mikael Nordfeldth 2016-03-28 16:41:29 +02:00
parent 16517f019a
commit d4041a4a1f
1 changed files with 2 additions and 2 deletions

View File

@ -1302,8 +1302,8 @@ class Ostatus_profile extends Managed_DataObject
if ($avatar && !isset($ptag)) {
try {
$this->updateAvatar($avatar);
} catch (Exception $ex) {
common_log(LOG_WARNING, "Exception updating OStatus profile avatar: " . $ex->getMessage());
} catch (Exception $e) {
common_log(LOG_WARNING, 'Exception ('.get_class($e).') updating OStatus profile avatar: ' . $e->getMessage());
}
}
}