Use log during IBR

This commit is contained in:
Marvin W 2019-10-18 14:55:57 +02:00
parent 2da8fd6881
commit fcec78ce27
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
2 changed files with 3 additions and 1 deletions

View file

@ -8,7 +8,7 @@ public interface Dino.Application : GLib.Application {
public abstract Plugins.Registry plugin_registry { get; set; }
public abstract SearchPathGenerator? search_path_generator { get; set; }
static string print_xmpp;
internal static string print_xmpp;
private const OptionEntry[] options = {
{ "print-xmpp", 0, 0, OptionArg.STRING, ref print_xmpp, "Print XMPP stanzas identified by DESC to stderr", "DESC" },

View file

@ -56,6 +56,7 @@ public class Register : StreamInteractionModule, Object{
public static async ServerAvailabilityReturn check_server_availability(Jid jid) {
XmppStream stream = new XmppStream();
stream.log = new XmppLog(jid.to_string(), Application.print_xmpp);
stream.add_module(new Tls.Module());
stream.add_module(new Iq.Module());
stream.add_module(new Xep.SrvRecordsTls.Module());
@ -97,6 +98,7 @@ public class Register : StreamInteractionModule, Object{
public static async Xep.InBandRegistration.Form? get_registration_form(Jid jid) {
XmppStream stream = new XmppStream();
stream.log = new XmppLog(jid.to_string(), Application.print_xmpp);
stream.add_module(new Tls.Module());
stream.add_module(new Iq.Module());
stream.add_module(new Xep.SrvRecordsTls.Module());