journal using SPEW (instead of REPETITIVE)

This commit is contained in:
Jean Sirmai 2024-09-23 11:01:12 +02:00
parent 46a29e1b1e
commit 36f2b6dd69
Signed by: jean
GPG Key ID: FB3115C340E057E3
4 changed files with 10 additions and 10 deletions

View File

@ -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 - * * * */
enum severity {CRITICAL, ERROR, WARNING, INFO, MESSAGE, DEBUG, REPETITIVE, SPEW};
enum severity {CRITICAL, ERROR, WARNING, INFO, MESSAGE, DEBUG, SPEW};
enum source {
SOURCE, TARGET, JOURNAL, FSM, PREFER,

View File

@ -60,8 +60,8 @@ static journal gg_logs;
void fsm_journal_publication_request () {fsm_journal_publish (gg_logs);}
// CRITICAL ERROR WARNING INFO MESSAGE DEBUG REPETITIVE SPEW
// 0 1 2 3 4 5 6 7
// CRITICAL ERROR WARNING INFO MESSAGE DEBUG SPEW (bye bye REPETITIVE 2024-09-23)
// 0 1 2 3 4 5 6
void fsm_journal_event (int severity,
int 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 😄️
severity != REPETITIVE
severity < SPEW
// source != TREE
// source == FSM
// strcmp (value, "")

View File

@ -72,7 +72,7 @@ static void on_user_tree_expander_toggled (GtkExpander *expander,
void on_setup_user_tree_factory (GtkSignalListItemFactory *factory,
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);
gtk_list_item_set_child (GTK_LIST_ITEM (object), expander);
}
@ -101,7 +101,7 @@ void on_bind_user_tree_factory (GtkSignalListItemFactory *factory,
row);
gtk_widget_set_margin_start (expander,
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);
switch (axis) {
case 0 : fsm_journal_event (REPETITIVE, SLIDER_X,
case 0 : fsm_journal_event (SPEW, SLIDER_X,
"signal", "X value changed()", string_value);
break;
case 1 : fsm_journal_event (REPETITIVE, SLIDER_Y,
case 1 : fsm_journal_event (SPEW, SLIDER_Y,
"signal", "Y value changed()", string_value);
break;
case 2 : fsm_journal_event (REPETITIVE, SLIDER_Z,
case 2 : fsm_journal_event (SPEW, SLIDER_Z,
"signal", "Z value changed()", string_value);
break;
}

View File

@ -56,7 +56,7 @@ void *widget_get_btt_conditions_list()
char str6[4]; sprintf(str6, "%d)", rand() % 10);
one_condition = concat (str1, str2, str3, str4, str5, str6, NULL);
widget_set_item_text (list_box, one_condition, TRUE);
fsm_journal_event (REPETITIVE,
fsm_journal_event (SPEW,
RULE_CONDITION,
"one_rule/algebra/conditions",
"conditions list ",