journal using SPEW (instead of REPETITIVE)
This commit is contained in:
parent
46a29e1b1e
commit
36f2b6dd69
|
@ -62,7 +62,7 @@ typedef struct disp_list {int value; struct disp_list *suiv;} disp_list ;
|
||||||
* * * * * - J O U R N A L M E T A R U L E S - * * * */
|
* * * * * - J O U R N A L M E T A R U L E S - * * * */
|
||||||
|
|
||||||
|
|
||||||
enum severity {CRITICAL, ERROR, WARNING, INFO, MESSAGE, DEBUG, REPETITIVE, SPEW};
|
enum severity {CRITICAL, ERROR, WARNING, INFO, MESSAGE, DEBUG, SPEW};
|
||||||
|
|
||||||
enum source {
|
enum source {
|
||||||
SOURCE, TARGET, JOURNAL, FSM, PREFER,
|
SOURCE, TARGET, JOURNAL, FSM, PREFER,
|
||||||
|
|
|
@ -60,8 +60,8 @@ static journal gg_logs;
|
||||||
|
|
||||||
void fsm_journal_publication_request () {fsm_journal_publish (gg_logs);}
|
void fsm_journal_publication_request () {fsm_journal_publish (gg_logs);}
|
||||||
|
|
||||||
// CRITICAL ERROR WARNING INFO MESSAGE DEBUG REPETITIVE SPEW
|
// CRITICAL ERROR WARNING INFO MESSAGE DEBUG SPEW (bye bye REPETITIVE 2024-09-23)
|
||||||
// 0 1 2 3 4 5 6 7
|
// 0 1 2 3 4 5 6
|
||||||
void fsm_journal_event (int severity,
|
void fsm_journal_event (int severity,
|
||||||
int source,
|
int source,
|
||||||
const char *file_source,
|
const char *file_source,
|
||||||
|
@ -70,7 +70,7 @@ void fsm_journal_event (int severity,
|
||||||
{
|
{
|
||||||
if ( // TRUE // just to find easily the line beginning the filter conditions 😄️
|
if ( // TRUE // just to find easily the line beginning the filter conditions 😄️
|
||||||
|
|
||||||
severity != REPETITIVE
|
severity < SPEW
|
||||||
// source != TREE
|
// source != TREE
|
||||||
// source == FSM
|
// source == FSM
|
||||||
// strcmp (value, "")
|
// strcmp (value, "")
|
||||||
|
|
10
src/signal.c
10
src/signal.c
|
@ -72,7 +72,7 @@ static void on_user_tree_expander_toggled (GtkExpander *expander,
|
||||||
|
|
||||||
void on_setup_user_tree_factory (GtkSignalListItemFactory *factory,
|
void on_setup_user_tree_factory (GtkSignalListItemFactory *factory,
|
||||||
GObject* object, gpointer user_data){
|
GObject* object, gpointer user_data){
|
||||||
fsm_journal_event (REPETITIVE, EXPANDER, "signal", "setup user tree factory()", "");
|
fsm_journal_event (SPEW, EXPANDER, "signal", "setup user tree factory()", "");
|
||||||
GtkWidget* expander = gtk_expander_new (NULL);
|
GtkWidget* expander = gtk_expander_new (NULL);
|
||||||
gtk_list_item_set_child (GTK_LIST_ITEM (object), expander);
|
gtk_list_item_set_child (GTK_LIST_ITEM (object), expander);
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ void on_bind_user_tree_factory (GtkSignalListItemFactory *factory,
|
||||||
row);
|
row);
|
||||||
gtk_widget_set_margin_start (expander,
|
gtk_widget_set_margin_start (expander,
|
||||||
gtk_tree_list_row_get_depth(row) * 20);
|
gtk_tree_list_row_get_depth(row) * 20);
|
||||||
fsm_journal_event (REPETITIVE, TREE, "signal", "(tree) bind user tree factory()", text);
|
fsm_journal_event (SPEW, TREE, "signal", "(tree) bind user tree factory()", text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -200,13 +200,13 @@ void on_axis_value_change (GtkAdjustment *adjustment, gpointer data)
|
||||||
|
|
||||||
char string_value [10]; sprintf(string_value, " (%d)", axis_value);
|
char string_value [10]; sprintf(string_value, " (%d)", axis_value);
|
||||||
switch (axis) {
|
switch (axis) {
|
||||||
case 0 : fsm_journal_event (REPETITIVE, SLIDER_X,
|
case 0 : fsm_journal_event (SPEW, SLIDER_X,
|
||||||
"signal", "X value changed()", string_value);
|
"signal", "X value changed()", string_value);
|
||||||
break;
|
break;
|
||||||
case 1 : fsm_journal_event (REPETITIVE, SLIDER_Y,
|
case 1 : fsm_journal_event (SPEW, SLIDER_Y,
|
||||||
"signal", "Y value changed()", string_value);
|
"signal", "Y value changed()", string_value);
|
||||||
break;
|
break;
|
||||||
case 2 : fsm_journal_event (REPETITIVE, SLIDER_Z,
|
case 2 : fsm_journal_event (SPEW, SLIDER_Z,
|
||||||
"signal", "Z value changed()", string_value);
|
"signal", "Z value changed()", string_value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ void *widget_get_btt_conditions_list()
|
||||||
char str6[4]; sprintf(str6, "%d)", rand() % 10);
|
char str6[4]; sprintf(str6, "%d)", rand() % 10);
|
||||||
one_condition = concat (str1, str2, str3, str4, str5, str6, NULL);
|
one_condition = concat (str1, str2, str3, str4, str5, str6, NULL);
|
||||||
widget_set_item_text (list_box, one_condition, TRUE);
|
widget_set_item_text (list_box, one_condition, TRUE);
|
||||||
fsm_journal_event (REPETITIVE,
|
fsm_journal_event (SPEW,
|
||||||
RULE_CONDITION,
|
RULE_CONDITION,
|
||||||
"one_rule/algebra/conditions",
|
"one_rule/algebra/conditions",
|
||||||
"conditions list ",
|
"conditions list ",
|
||||||
|
|
Loading…
Reference in New Issue