Skip to content
Snippets Groups Projects

Change automatic log levels to Warning if release, and Info otherwise

Closed Florian Schmaus requested to merge flow/emper:flow into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -57,7 +57,7 @@ conf_data.set('EMPER_DEFAULT_SCHEDULING_STRATEGY_' + default_scheduling_strategy
log_level = get_option('log_level')
if log_level == 'automatic'
# output only error messages in release builds
log_level = get_option('buildtype') == 'release' ? 'Error' : 'ALL'
log_level = get_option('buildtype') == 'release' ? 'Warning' : 'Info'
# turn logging of during compilation
elif log_level == 'OFF'
conf_data.set('EMPER_LOG_OFF', true)
Loading