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

View File

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