0915053 Include error domain and code in log messages from errors

Authored and Committed by berrange 10 years ago
    Include error domain and code in log messages from errors
    
    When a virError is raised, pass the error domain and code
    onto the systemd journald using metadata fields.
    
    This allows error messages to be queried by code eg
    
      $ journalctl LIBVIRT_CODE=43
    
    Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
    
        
file modified
+4 -0
file modified
+7 -1