~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/errmsg.cc

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <config.h>
21
21
 
22
22
#include <drizzled/gettext.h>
23
 
#include <drizzled/session.h>
 
23
#include <drizzled/errmsg_print.h>
24
24
 
25
25
#include <stdarg.h>
26
26
 
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(drizzled::Session *,
57
 
                                  int, const char *format, va_list ap)
 
56
bool error_message::Syslog::errmsg(drizzled::error::level_t, const char *format, va_list ap)
58
57
{
59
58
  WrapSyslog::singleton().vlog(_facility, _priority, format, ap);
60
59
  return false;