fix definitions of error, critical and warning macros (fixes #12830)
They all log at the DEBUG level instead of their respective levels.
This commit is contained in:
parent
a69c61f419
commit
5798311da1
|
@ -92,9 +92,9 @@ static inline void message(GLogLevelFlags level, const char *format, ...)
|
|||
|
||||
#if defined(__GNUC__)
|
||||
# define warning(format, args...) \
|
||||
message(G_LOG_LEVEL_DEBUG, format, ##args)
|
||||
message(G_LOG_LEVEL_WARNING, format, ##args)
|
||||
#elif defined(HAVE_VARIADIC_MACROS)
|
||||
# define warning(...) message(G_LOG_LEVEL_DEBUG, __VA_ARGS__)
|
||||
# define warning(...) message(G_LOG_LEVEL_WARNING, __VA_ARGS__)
|
||||
#else
|
||||
static inline void warning(const char *format, ...)
|
||||
{
|
||||
|
@ -109,9 +109,9 @@ static inline void warning(const char *format, ...)
|
|||
|
||||
#if defined(__GNUC__)
|
||||
# define critical(format, args...) \
|
||||
message(G_LOG_LEVEL_DEBUG, format, ##args)
|
||||
message(G_LOG_LEVEL_CRITICAL, format, ##args)
|
||||
#elif defined(HAVE_VARIADIC_MACROS)
|
||||
# define critical(...) message(G_LOG_LEVEL_DEBUG, __VA_ARGS__)
|
||||
# define critical(...) message(G_LOG_LEVEL_CRITICAL, __VA_ARGS__)
|
||||
#else
|
||||
static inline void critical(const char *format, ...)
|
||||
{
|
||||
|
@ -126,9 +126,9 @@ static inline void critical(const char *format, ...)
|
|||
|
||||
#if defined(__GNUC__)
|
||||
# define error(format, args...) \
|
||||
message(G_LOG_LEVEL_DEBUG, format, ##args)
|
||||
message(G_LOG_LEVEL_ERROR, format, ##args)
|
||||
#elif defined(HAVE_VARIADIC_MACROS)
|
||||
# define error(...) message(G_LOG_LEVEL_DEBUG, __VA_ARGS__)
|
||||
# define error(...) message(G_LOG_LEVEL_ERROR, __VA_ARGS__)
|
||||
#else
|
||||
static inline void error(const char *format, ...)
|
||||
{
|
||||
|
|
|
@ -295,7 +295,7 @@ START_TEST(test02_serviceProviderLogin)
|
|||
fail_unless(found != NULL, "We must find an InResponseTo attribute");
|
||||
found[sizeof("InResponseTo=\"")] = '?';
|
||||
lasso_set_flag("no-verify-signature");
|
||||
begin_check_do_log(G_LOG_LEVEL_DEBUG, " If inResponseTo attribute is present, a matching "
|
||||
begin_check_do_log(G_LOG_LEVEL_CRITICAL, " If inResponseTo attribute is present, a matching "
|
||||
"request must be present too in the LassoLogin object", TRUE);
|
||||
check_not_equals(lasso_login_process_response_msg(spLoginContext, soapResponseMsg), 0);
|
||||
end_check_do_log();
|
||||
|
|
Loading…
Reference in New Issue