rem: debug_variable=utils_str_atoi (getenv ("DEBUG_GRISBI"));   if (debug_variable > 0 && debug_variable <= MAX_DEBUG_LEVEL) {  debugging_grisbi = debug_variable; switch(debug_variable) { case DEBUG_LEVEL_ALERT: { debug_level="Alert"; break; } case DEBUG_LEVEL_IMPORTANT: { debug_level="Important"; break; } case DEBUG_LEVEL_NOTICE: { debug_level="Notice"; break; } case DEBUG_LEVEL_INFO: { debug_level="Info"; break; } case DEBUG_LEVEL_DEBUG: { debug_level="Debug"; break; } }   debug_message(g_strdup_printf(_("GRISBI %s Debug"),VERSION) , g_strdup_printf(_("Debug enable, level is '%s'"),debug_level), DEBUG_LEVEL_INFO, TRUE); } else {  debug_message(g_strdup_printf(_("GRISBI %s Debug"),VERSION) , _("Wrong debug level, please check DEBUG_GRISBI environnement variable"), DEBUG_LEVEL_INFO, TRUE); }
add: debugging_grisbi = debug_variable; switch(debug_variable) { case DEBUG_LEVEL_ALERT: { debug_level="Alert"; break; } case DEBUG_LEVEL_IMPORTANT: { debug_level="Important"; break; } case DEBUG_LEVEL_NOTICE: { debug_level="Notice"; break; } case DEBUG_LEVEL_INFO: { debug_level="Info"; break; } case DEBUG_LEVEL_DEBUG: { debug_level="Debug"; break; } }   debug_message(g_strdup_printf(_("GRISBI %s Debug"),VERSION) , g_strdup_printf(_("Debug enable, level is '%s'"),debug_level), DEBUG_LEVEL_INFO, TRUE);
context: void initialize_debugging ( void ){	/* un int pour stocker le level de debug et une chaine qui contient sa version texte */	gint debug_variable=0;	gchar *debug_level="";		if (getenv ("DEBUG_GRISBI"))	{		/* on choppe la variable d'environnement */		debug_variable=utils_str_atoi (getenv ("DEBUG_GRISBI"));				/* on verifie que la variable est cohérente */		if (debug_variable > 0 && debug_variable <= MAX_DEBUG_LEVEL) 		{			/* on renseigne le texte du level de debug */			debugging_grisbi = debug_variable;			switch(debug_variable)			{					case DEBUG_LEVEL_ALERT: { debug_level="Alert"; break; }					case DEBUG_LEVEL_IMPORTANT: { debug_level="Important"; break; }					case DEBUG_LEVEL_NOTICE: { debug_level="Notice"; break; }					case DEBUG_LEVEL_INFO: { debug_level="Info"; break; }					case DEBUG_LEVEL_DEBUG: { debug_level="Debug"; break; }			}						/* on affiche un message de debug pour indiquer que le debug est actif */			debug_message(g_strdup_printf(_("GRISBI %s Debug"),VERSION) , 										g_strdup_printf(_("Debug enable, level is '%s'"),debug_level),										DEBUG_LEVEL_INFO, TRUE);		}		else		{			/* on affiche un message de debug pour indiquer que le debug est actif */			debug_message(g_strdup_printf(_("GRISBI %s Debug"),VERSION) , 										_("Wrong debug level, please check DEBUG_GRISBI environnement variable"),										DEBUG_LEVEL_INFO, TRUE);		}	}}