verbosity cleanup -- not finished yet

This commit is contained in:
Vitor Santos Costa 2016-05-10 15:44:28 +01:00
parent e98c4c9f2a
commit 516f89b76d
4 changed files with 8 additions and 8 deletions

View File

@ -129,6 +129,7 @@ else()
endif()
option (WITH_CUDD "BDD CUDD package" ON)
if (WITH_CUDD)
#detect cudd setup, as it is shared between different installations.

View File

@ -1383,11 +1383,9 @@ not(G) :- \+ '$execute'(G).
'$silent_bootstrap'(F) :-
yap_flag(verbose, _, silent),
yap_flag(verbose_load, _, silent),
yap_flag(verbose, Old, silent),
bootstrap( F ),
yap_flag(verbose, _, normal),
yap_flag(verbose_load, _, normal),
yap_flag(verbose, _, Old),
'$live'.

View File

@ -260,7 +260,6 @@ load_files(Files,Opts) :-
'$load_files'(Files, Opts, Call) :-
( '$nb_getval'('$lf_status', OldTOpts, fail), nonvar(OldTOpts) ->
'$lf_opt'(silent, OldTOpts, OldVerbosity),
'$lf_opt'(autoload, OldTOpts, OldAutoload)
;
'$lf_option'(last_opt, LastOpt),

View File

@ -884,13 +884,15 @@ stub to ensure everything os ok
*/
prolog:print_message(Level, _Msg) :-
current_prolog_flag(verbose, silent),
Level \= error,
Level \= warning,
!.
prolog:print_message(_, _Msg) :-
% first step at hook processi --ng
'$nb_getval'('$if_skip_mode',skip,fail),
!.
prolog:print_message(informational, _Msg) :-
current_prolog_flag(verbose, silent),
!.
prolog:print_message(banner, _Msg) :-
current_prolog_flag(verbose, silent),
!.