Refactored log

Added shortcut functions for prof logging levels
This commit is contained in:
James Booth
2012-08-26 00:54:18 +01:00
parent 0fe70ce7d3
commit 2bbac1c811
7 changed files with 92 additions and 54 deletions

View File

@@ -80,7 +80,7 @@ static void _save_prefs(void);
void
prefs_load(void)
{
log_msg(PROF_LEVEL_INFO, "prof", "Loading preferences");
log_info("Loading preferences");
ac = p_autocomplete_new();
prefs_loc = g_string_new(getenv("HOME"));
g_string_append(prefs_loc, "/.profanity/config");
@@ -110,7 +110,7 @@ prefs_load(void)
void
prefs_close(void)
{
log_msg(PROF_LEVEL_INFO, "prof", "Closing down preferences");
log_info("Closing down preferences");
g_key_file_free(prefs);
}