compositor: Use only 'log' scope to print libwayland messages

No need to duplicate messages.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
dev
Marius Vlad 5 years ago
parent 1a3c6df5d5
commit bed9b81a39
  1. 9
      compositor/main.c

@ -129,7 +129,7 @@ static struct weston_log_scope *log_scope;
static struct weston_log_scope *protocol_scope;
static int cached_tm_mday = -1;
static int weston_log_timestamp(void)
int weston_log_timestamp(void)
{
struct timeval tv;
struct tm *brokendown_time;
@ -157,13 +157,6 @@ static void
custom_handler(const char *fmt, va_list arg)
{
char timestr[128];
va_list arg2;
va_copy(arg2, arg);
weston_log_timestamp();
fprintf(weston_logfile, "libwayland: ");
vfprintf(weston_logfile, fmt, arg2);
va_end(arg2);
weston_log_scope_printf(log_scope, "%s libwayland: ",
weston_log_scope_timestamp(log_scope,

Loading…
Cancel
Save