From f2bc6d1844ca3ed375af257c582a6e8265a516e0 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Mon, 26 Feb 2018 21:09:51 +0100 Subject: [PATCH] logger: Enable trace logging by default Often we may need information from the user that is only available if -l trace is used which requires most users to recompile polybar in debug mode. --- cmake/02-opts.cmake | 5 +++-- cmake/05-summary.cmake | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cmake/02-opts.cmake b/cmake/02-opts.cmake index 557e9a14..b0a3af79 100644 --- a/cmake/02-opts.cmake +++ b/cmake/02-opts.cmake @@ -42,9 +42,10 @@ option(WITH_XKB "xcb-xkb support" ON) option(WITH_XRM "xcb-xrm support" ON) option(WITH_XCURSOR "xcb-cursor support" ON) +option(DEBUG_LOGGER "Trace logging" ON) + if(CMAKE_BUILD_TYPE_UPPER MATCHES DEBUG) - option(DEBUG_LOGGER "Debug logging" ON) - option(DEBUG_LOGGER_VERBOSE "Debug logging (verbose)" OFF) + option(DEBUG_LOGGER_VERBOSE "Trace logging (verbose)" OFF) option(DEBUG_HINTS "Debug clickable areas" OFF) option(DEBUG_WHITESPACE "Debug whitespace" OFF) option(DEBUG_FONTCONFIG "Debug fontconfig" OFF) diff --git a/cmake/05-summary.cmake b/cmake/05-summary.cmake index f9e426af..c50929c9 100644 --- a/cmake/05-summary.cmake +++ b/cmake/05-summary.cmake @@ -31,9 +31,11 @@ colored_option(" xcb-xkb" WITH_XKB) colored_option(" xcb-xrm" WITH_XRM) colored_option(" xcb-cursor" WITH_XCURSOR) +message(STATUS " Log options:") +colored_option(" Trace logging" DEBUG_LOGGER) + if(CMAKE_BUILD_TYPE_UPPER MATCHES DEBUG) message(STATUS " Debug options:") - colored_option(" Trace logging" DEBUG_LOGGER) colored_option(" Trace logging (verbose)" DEBUG_LOGGER_VERBOSE) colored_option(" Draw clickable areas" DEBUG_HINTS) colored_option(" Print fc-match details" DEBUG_FONTCONFIG)