LOG_WARNING, not LOG_WARN

This commit is contained in:
Mikael Nordfeldth 2013-10-06 01:15:21 +02:00
parent 48da97f204
commit ba481d1e31
3 changed files with 4 additions and 4 deletions

View File

@ -740,7 +740,7 @@ class User_group extends Managed_DataObject
self::blow('user_group:notice_ids:%d', $this->id);
} else {
common_log(LOG_WARN, "Ambiguous user_group->delete(); skipping related tables.");
common_log(LOG_WARNING, "Ambiguous user_group->delete(); skipping related tables.");
}
parent::delete();
}

View File

@ -319,7 +319,7 @@ while($lop->fetch()) {
}
} catch (Exception $e) {
if (!$quiet) { print $e->getMessage() . "\n"; }
common_log(LOG_WARN, $e->getMessage(), __FILE__);
common_log(LOG_WARNING, $e->getMessage(), __FILE__);
// continue on error
}
}

View File

@ -49,7 +49,7 @@ class YammerImporter
} else {
$user = User::getKV('nickname', $nickname);
if ($user) {
common_log(LOG_WARN, "Copying Yammer profile info onto existing user $nickname");
common_log(LOG_WARNING, "Copying Yammer profile info onto existing user $nickname");
$profile = $user->getProfile();
$this->savePropertiesOn($profile, $data['options'],
array('fullname', 'homepage', 'bio', 'location'));
@ -86,7 +86,7 @@ class YammerImporter
} else {
$local = Local_group::getKV('nickname', $nickname);
if ($local) {
common_log(LOG_WARN, "Copying Yammer group info onto existing group $nickname");
common_log(LOG_WARNING, "Copying Yammer group info onto existing group $nickname");
$group = User_group::getKV('id', $local->group_id);
$this->savePropertiesOn($group, $data['options'],
array('fullname', 'description'));