mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Use log facilities instead of printing on the stderr
This commit is contained in:
parent
92a50000c2
commit
b300fa5baf
@ -41,6 +41,7 @@
|
|||||||
|
|
||||||
#include "tray.h"
|
#include "tray.h"
|
||||||
#include "window_list.h"
|
#include "window_list.h"
|
||||||
|
#include "log.h"
|
||||||
|
|
||||||
static GtkStatusIcon *prof_tray = NULL;
|
static GtkStatusIcon *prof_tray = NULL;
|
||||||
static GString *icon_filename = NULL;
|
static GString *icon_filename = NULL;
|
||||||
@ -105,7 +106,7 @@ static void _get_icons(void)
|
|||||||
}
|
}
|
||||||
g_string_free(name, true);
|
g_string_free(name, true);
|
||||||
} else {
|
} else {
|
||||||
fprintf (stderr, "Unable to open dir: %s\n", err->message);
|
log_error("Unable to open dir: %s", err->message);
|
||||||
g_error_free(err);
|
g_error_free(err);
|
||||||
}
|
}
|
||||||
g_dir_close(dir);
|
g_dir_close(dir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user