Lars
December 12, 2022, 11:01am
1
Hello,
I’m using SWI-Prolog in a moodle environment which tests the output with a simple string-compare.
This worked perfectly until the last update where a warning message appeared:
“% Disabled autoloading (loaded … files)”
Is there a possibility to disable this warning message?
Thanx in advance.
Lars
Boris
December 12, 2022, 12:02pm
2
Would it be possible to redirect your standard error output outside of Prolog itself? That alone might solve your issue.
Or maybe start with the “quiet” command line argument:
$ swipl -q
?-
which is there to “suppress informational messages”.
1 Like
Lars
December 12, 2022, 12:23pm
3
Thanx for the hint, but I did this already
the parameters I’m using are “swipl -q -f test.pl prog.pl”
Boris
December 12, 2022, 12:25pm
4
Hmm, then this isn’t a warning/info message. You should maybe say explicitly which version broke it.
Lars
December 12, 2022, 12:25pm
5
Oh … the standard - error output hint was brilliant !
Now it works all fine !!
jan
December 12, 2022, 12:48pm
6
There is also a message specific way to handle them (see message_hook/3).
:- multifile user:message_hook/3.
user:message_hook(autoload(disabled(_Loaded)), _Kind, _Lines).
1 Like