mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
events: Add a warning event and direct all warning messages through it.
This also causes warnings to be printed even in non-verbose mode, which is useful.
This commit is contained in:
@@ -36,7 +36,7 @@ class TestLoad < Test::Unit::TestCase
|
||||
|
||||
# Grab log, trace and daemon messages into our custom callback.
|
||||
event_bitmask = Guestfs::EVENT_APPLIANCE | Guestfs::EVENT_LIBRARY |
|
||||
Guestfs::EVENT_TRACE
|
||||
Guestfs::EVENT_WARNING | Guestfs::EVENT_TRACE
|
||||
g.set_event_callback(log, event_bitmask)
|
||||
|
||||
# Make sure we see some messages.
|
||||
|
||||
Reference in New Issue
Block a user