libinput-seat: allow setting libinput log priority in weston
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 17 Apr 2014 14:53:23 +0000 (07:53 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 21 Apr 2014 21:35:33 +0000 (14:35 -0700)
commitc81c4241d9c9fc5f60c08177dd8a33ae4e4ddca1
tree1a4beff9b76afc6cc73e8f742661960f2b23fd3b
parent71db0fd117a8585ee083c8b565bb9afdfa159a6a
libinput-seat: allow setting libinput log priority in weston

Look for WESTON_LIBINPUT_LOG_PRIORITY environment variable.  If
it exists then use it to set the libinput log priority.
Otherwise, don't set the priority and get whatever libinput's
default priority is.

Setting WESTON_LIBINPUT_LOG_PRIORITY=0 allows us to log which
input devices are detected at Weston startup and makes it a
little more consistent with Weston's original evdev input setup
log messages... and useful for debugging and testing.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/libinput-seat.c