summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@mysql.com/deer.(none)>2006-08-01 15:18:21 +0500
committerunknown <holyfoot/hf@mysql.com/deer.(none)>2006-08-01 15:18:21 +0500
commit2b86ee9f0aa874065acf25094782e1e1f0f0f7b4 (patch)
tree91a98809820f4182835a2b6b72ac183465a6522c /sql/log.cc
parent340053df4ed7215517de0a67fd5e79bee5251d38 (diff)
downloadmariadb-git-2b86ee9f0aa874065acf25094782e1e1f0f0f7b4.tar.gz
bug #13717 embedded library dumps warnings on STDERR directly
Here i just disabled STDERR warnings in embedded server Later we should get more defined about logs in the embedded server sql/log.cc: Log messages muted in embedded server
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index c530f15a84f..78605de3141 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -2321,6 +2321,12 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff,
void
*/
+#ifdef EMBEDDED_LIBRARY
+void vprint_msg_to_log(enum loglevel level __attribute__((unused)),
+ const char *format __attribute__((unused)),
+ va_list argsi __attribute__((unused)))
+{}
+#else /*!EMBEDDED_LIBRARY*/
void vprint_msg_to_log(enum loglevel level, const char *format, va_list args)
{
char buff[1024];
@@ -2336,6 +2342,7 @@ void vprint_msg_to_log(enum loglevel level, const char *format, va_list args)
DBUG_VOID_RETURN;
}
+#endif /*EMBEDDED_LIBRARY*/
void sql_print_error(const char *format, ...)