~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/errmsg.cc

  • Committer: Brian Aker
  • Date: 2011-02-01 02:51:01 UTC
  • mto: (2132.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2134.
  • Revision ID: brian@tangent.org-20110201025101-yaj5kkdk2towo6ou
Merge in error message rework. Many error messages are fixed in this patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{
39
39
  if (_facility == -1)
40
40
  {
41
 
    drizzled::errmsg_printf(ERRMSG_LVL_WARN,
 
41
    drizzled::errmsg_printf(drizzled::error::WARN,
42
42
                            _("syslog facility \"%s\" not known, using \"local0\""),
43
43
                            facility.c_str());
44
44
    _facility= WrapSyslog::getFacilityByName("local0");
46
46
 
47
47
  if (_priority == -1)
48
48
  {
49
 
    drizzled::errmsg_printf(ERRMSG_LVL_WARN,
 
49
    drizzled::errmsg_printf(drizzled::error::WARN,
50
50
                            _("syslog priority \"%s\" not known, using \"warn\""),
51
51
                            priority.c_str());
52
52
    _priority= WrapSyslog::getPriorityByName("warn");
53
53
  }
54
54
}
55
55
 
56
 
bool error_message::Syslog::errmsg(int, const char *format, va_list ap)
 
56
bool error_message::Syslog::errmsg(drizzled::error::level_t, const char *format, va_list ap)
57
57
{
58
58
  WrapSyslog::singleton().vlog(_facility, _priority, format, ap);
59
59
  return false;