diff options
author | unknown <joreland@mysql.com> | 2005-06-10 12:33:07 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-06-10 12:33:07 +0200 |
commit | 3d749dbc6851fa0e5f311843c1f29b86503d3e3d (patch) | |
tree | 21342b0a67f364d166843293a38761a5735aa4c5 /ndb | |
parent | 4f07f59e14f293dc49f1aec8ac065091a1d263e7 (diff) | |
parent | bb9268b80395f1b8d701ecbe715edf054e4ceebe (diff) | |
download | mariadb-git-3d749dbc6851fa0e5f311843c1f29b86503d3e3d.tar.gz |
Merge mysql.com:/home/jonas/src/mysql-4.1
into mysql.com:/home/jonas/src/mysql-5.0
ndb/src/common/logger/Logger.cpp:
Auto merged
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/common/logger/Logger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ndb/src/common/logger/Logger.cpp b/ndb/src/common/logger/Logger.cpp index 7f18f5bd3ec..4a48236053d 100644 --- a/ndb/src/common/logger/Logger.cpp +++ b/ndb/src/common/logger/Logger.cpp @@ -352,11 +352,11 @@ Logger::log(LoggerLevel logLevel, const char* pMsg, va_list ap) const { if (m_logLevels[LL_ON] && m_logLevels[logLevel]) { + char buf[MAX_LOG_MESSAGE_SIZE]; + BaseString::vsnprintf(buf, sizeof(buf), pMsg, ap); LogHandler* pHandler = NULL; while ( (pHandler = m_pHandlerList->next()) != NULL) { - char buf[MAX_LOG_MESSAGE_SIZE]; - BaseString::vsnprintf(buf, sizeof(buf), pMsg, ap); pHandler->append(m_pCategory, logLevel, buf); } } |