Add configure flags to moderate the ClueCon nags

The default remains the same: we show the huge ClueCon nag banner on
startup and in fs_cli.

However, if you pass --disable-huge-cluecon-nag, no banner will be
shown.

If you pass --enable-modest-cluecon-nag, a modest text-based ClueCon
reminder will be shown instead.
This commit is contained in:
Travis Cross
2012-09-22 19:05:18 +00:00
parent 53c24a93e0
commit fb2ffbafe2
7 changed files with 55 additions and 17 deletions

View File

@@ -2002,12 +2002,16 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t
#ifdef WIN32
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s%s\n\n", switch_core_banner(), cc);
#else
#elif SHOW_HUGE_CLUECON_NAG
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s%s%s%s%s%s\n\n",
SWITCH_SEQ_DEFAULT_COLOR,
SWITCH_SEQ_FYELLOW, SWITCH_SEQ_BBLUE,
switch_core_banner(),
cc, SWITCH_SEQ_DEFAULT_COLOR);
#else
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s%s%s\n\n",
SWITCH_SEQ_DEFAULT_COLOR,
switch_core_banner(), cc);
#endif