~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/syslog/logging.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-12-21 16:39:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101221163940-c1pfo1jjvx7909xq
Tags: 2010.12.06-0ubuntu1
* New upstream release.
* Added libaio-dev build depend for InnoDB.
* Removed libpcre patch - applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
5
5
 *  Copyright (C) 2010 Mark Atwood
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
90
90
    return false;
91
91
  
92
92
  drizzled::Session::QueryString query_string(session->getQueryString());
 
93
  drizzled::util::string::const_shared_ptr schema(session->schema());
93
94
 
94
95
  WrapSyslog::singleton()
95
96
    .log(_facility, _priority,
102
103
         " tmp_table=%ld total_warn_count=%ld\n",
103
104
         (unsigned long) session->thread_id,
104
105
         (unsigned long) session->getQueryId(),
105
 
         (int) session->getSchema().length(),
106
 
         session->getSchema().empty() ? "" : session->getSchema().c_str(),
 
106
         (int) schema->size(),
 
107
         schema->empty() ? "" : schema->c_str(),
107
108
         (int) query_string->length(), 
108
109
         query_string->empty() ? "" : query_string->c_str(),
109
110
         (int) drizzled::command_name[session->command].length,