~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/errmsg.cc

  • Committer: Lee Bieber
  • Date: 2010-12-23 23:11:00 UTC
  • mfrom: (2024.1.1 clean)
  • Revision ID: kalebral@gmail.com-20101223231100-0rqirgz7ugkl10yp
Merge Brian - session list cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include "config.h"
21
21
 
22
22
#include <drizzled/gettext.h>
23
 
#include <drizzled/errmsg_print.h>
 
23
#include <drizzled/session.h>
24
24
 
25
25
#include <stdarg.h>
26
26
 
38
38
{
39
39
  if (_facility == -1)
40
40
  {
41
 
    drizzled::errmsg_printf(drizzled::error::WARN,
 
41
    drizzled::errmsg_printf(ERRMSG_LVL_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(drizzled::error::WARN,
 
49
    drizzled::errmsg_printf(ERRMSG_LVL_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(drizzled::error::level_t, const char *format, va_list ap)
 
56
bool error_message::Syslog::errmsg(drizzled::Session *,
 
57
                                  int, const char *format, va_list ap)
57
58
{
58
59
  WrapSyslog::singleton().vlog(_facility, _priority, format, ap);
59
60
  return false;