~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/logging.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-10 11:16:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110310111626-o2ztahzlr63244mm
Remove unnecessary statement.h include

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include <drizzled/gettext.h>
32
32
#include <drizzled/session.h>
 
33
#include <drizzled/sql_parse.h>
33
34
 
34
35
#include "logging.h"
35
36
#include "wrap.h"
76
77
    return false;
77
78
  if (session->examined_row_count < _threshold_big_examined)
78
79
    return false;
79
 
  
 
80
 
80
81
  /*
81
82
    TODO, the session object should have a "utime command completed"
82
83
    inside itself, so be more accurate, and so this doesnt have to
87
88
  // return if query was not too slow
88
89
  if (session->getElapsedTime() < _threshold_slow)
89
90
    return false;
90
 
  
 
91
 
91
92
  drizzled::Session::QueryString query_string(session->getQueryString());
92
93
  drizzled::util::string::const_shared_ptr schema(session->schema());
93
94
 
104
105
         (unsigned long) session->getQueryId(),
105
106
         (int) schema->size(),
106
107
         schema->empty() ? "" : schema->c_str(),
107
 
         (int) query_string->length(), 
 
108
         (int) query_string->length(),
108
109
         query_string->empty() ? "" : query_string->c_str(),
109
110
         (int) drizzled::getCommandName(session->command).size(),
110
111
         drizzled::getCommandName(session->command).c_str(),
115
116
         (unsigned long) session->examined_row_count,
116
117
         (unsigned long) session->tmp_table,
117
118
         (unsigned long) session->total_warn_count);
118
 
  
 
119
 
119
120
    return false;
120
121
}
121
122