[spice-common PATCH 2/2] common: log: make error level the default abort level

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Instead of current abort level default which is critical level.

The spice_return_if_fail and spice_return_val_if_fail macros
log with critical level upon failure. This currently aborts
the program.
Instead it's better to log an error message and let the application
continue running.

diff --git a/common/log.c b/common/log.c
index 5e2db4c..8bf87d6 100644
--- a/common/log.c
+++ b/common/log.c
@@ -64,7 +64,7 @@ static const char * spice_log_level_to_string(SpiceLogLevel level)
 #ifdef SPICE_DISABLE_ABORT
 #define SPICE_ABORT_LEVEL_DEFAULT -1
 #else
-#define SPICE_ABORT_LEVEL_DEFAULT SPICE_LOG_LEVEL_CRITICAL
+#define SPICE_ABORT_LEVEL_DEFAULT SPICE_LOG_LEVEL_ERROR
 #endif
 #endif
 
-- 
1.7.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]