On Tue, 13 Jun 2017 at 09:28, Bertho Stultiens <ber...@vagrearg.org> wrote:

> Hi,
>
> The message level that will be output in rtapi_print_msg() depends on
> the level settings in the rtapi code.
>
> Is there a general way (cmdline) set it or does every module have to set
> it for itself using a "debug" module parameter and calling
> rtapi_set_msg_level()
>

I recently found this to be annoying, and wrote a tiny HAL component to set
the message level to max.

[code]
component set_msg_level;
license "GPL v2+";
author "andypugh";
option extra_setup;
pin out unsigned level;
;;

EXTRA_SETUP(){
    rtapi_set_msg_level(5);
}
[/code]

install with halcompile --install set_msg_level.comp and then "loadrt" the
component at the halrun prompt or in a HAL file.

Much more elegant, though, might be to add a --debug= flag to the
"linuxcnc" and "halrun" commands.

Thoughts?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to