RedfoxI just want to say Windows defender doesn't say nothing about gajim.exe now
lovetoxthanks for the info :)
lovetoxi dont get the use of logging levels
lovetoxor at least i only understand 2
lovetoxeither i only want to see errors
lovetoxor i want to see everything because i try to debug something
lovetoxbut there are like 3 log level in between
lovetoxinfo, warning, etc
lovetoxbut this is probably more for servers or something like that
lovetoxi dont see a reason why i shoudl start gajim with info level
lovetoxeither there is something to debug or i dont need a log at all
zaklovetox: WARN is something, that is not right, but the application can go on. ERROR is something, where something really didn't work and failed. INFO is no problem but just an informational message. DEBUG is something, that only a developer may interest.
zakAt least I handle it that way.
lovetoxi know what is intended with the level, but i dont see a reason why i should start a application with something inbetween error and debug
lovetoxi mean its probably intended for a application that puts out a ton of log information
lovetoxand you have to filter
lovetoxbut you can also already filter for the special module you want to log, like gajim.plugin_system, would only put out log info about plugin system
lovetoxit just seems overkill for me for most applications
zakWell... DEBUG is only for developer information of course and activated for these purposes. A user should by default enable WARN or ERROR, to see when something is going wrong. I agree, INFO is probably only for more console applications.
zakERROR should be minimum, WARN only when the user is more interested if everything is alright.
lovetoxyeah if i think about it now, its probably only INFO that makes at least sense
lovetoxbut there is even another one
lovetoxCRITICAL
zakyeah... that's for really bad problems, I guess only relevant for more applications close to hardware.
lovetox*the least sense i mean
zakI would use WARN for errors like "File not found, but should be there, created new one"
zakor "Configuration parameter not found, but should be set, using default..."
lovetoxyeah or that some recommended module is not there and a fallback used
zakyes
lovetoxthe thing is though, nobody starts applications like that or? everybody just uses the application with no logging level at all
lovetoxthen when a problem happens
lovetoxthe will activate the max logging because you dont know what level you will need
zakHmm... in case of Gajim I would log ERROR messages to a default file in .local/config/ or something like that. By default.
lovetoxwe do this only on windows
zakAnd somewhere there should be a setting where someone who needs it can change the loglevel to WARN or DEBUG
lovetoxis this usual for linux applications?
lovetoxthat they automatically log stuff
zakYou do what on windows only? log to a file?
lovetoxyeah
zakHmm... It depends on the application I think, and what might be logged.
zakIf there is a chance, that Gajim might pollute the logfile with hundreds and thousands of ERROR messages, it might be bad, because the user wouldn't now.
zakYou can disable this altogether probably. But I would keep an option to activate file logging.
zakFor example if I want to find out something about a problem, I don't want to start Gajim in a console every time. (And if I am not careful and close the window all messages are lost.)
lovetoxyeah i wanted to make a UI for easy enabling logging for a long time
lovetoxits a pain to tell everyone how to get logging going
zakDon't waste your time on that, if it will take too long.
zakJust a config file, and someone should uncomment a line "#ENABLE_LOGGING=1" or something like that.
zakPersonally I really like text file based configuration very much.
zakIt's easy and can be as complex as anyone wants. All the bells and whistles ;)
ssweenyI'm having an issue with the OMEMO plugin... I use a combination of gajim + conversations, and my wife only uses conversations. Our conversations instances can see each others' OMEMO keys, and my gajim instances can see my other devices' keys, but my gajim instance can't see her conversations key nor can she see my gajim keys. Looking at the debug logs in gajim I see stuff about enabling the UI for her but no device list for her
ssweenyI do see keys for other contacts but they're not on my server
fphomessweeny: did you try to send an encrypted message from gajim before? maybe key fetching must be triggered manually this way
ssweenyfphome, yeah it just says I can't send a message before trusting her key
ssweenyMy understanding was that the keys are published through PEP and some structure with them should arrive when I log in
fphomessweeny: does it show her key after this try?
ssweenyfphome, nope
fphomessweeny: does restarting gajim help?
ssweenyfphome, not so far
ssweenyI sometimes wonder if doing it with specific timing would help, like restart then have her sign out and back in...
ssweenylike if I'm somehow missing the PEP being published
ssweenyWhat would be nice is if OMEMO devices could share trusted keys with each other
ssweenyso if I've trusted her key on my phone then my desktop would get that info
fphomessweeny: from gajim to conversations this is possible via qrcode, but not the other way around ... this error sounds weird.
ssweenyhmm
zakssweeny: Did you actually trust any keys? Or are there none visible?
ssweenyzak, I trusted her key from conversations
ssweenybut I can't see it at all from either of two gajim instances
zakHmm... maybe wait until someone else is around who can help.
zakAll plugins (OMEMO) are up to date?
ssweenyomemo is 1.0.3 from the plugin manager
zakHm... that's the latest, okay.
zakAnd if she writes a message to you, you only receive it on your Conversations device?
zakAnd in her Conversations account, only your Conversations key is visible?
ssweenyright
zakSorry... no further idea. Maybe something went wrong when the Gajim key should have been published on the server for your contacts.
zakJust wait some more for others to help.
ssweenysure. Thanks for trying
ssweenyhm.. it might actually be prosody's fault... https://prosody.im/issues/issue/805
ssweenybut that doesn't explain why it works on conversations
lovetoxsweeny
lovetoxi need the debug logs
lovetoxstart gajim with gajim.plugin_system.omemo=DEBUG
lovetoxwait 20 seconds
lovetoxand post me the lopg
lovetoxits probably a problem with your server
lovetoxssweeny
lovetoxand it probably doesnt work with conversations too, it just did for one second sometimes probably. once the keys are exchanged you dont ever need the server anymore, so you dont see when something breaks on your server regarding PEP
ssweenylovetox, one sec let me grab that log
ssweenylovetox, https://paste.ubuntu.com/24061199/ is the log. No mention of my wife's JID (maybe since she's offline right now) but if I open a tab for conversation with her I do get "Adding OMEMO ui for <her JID>"
ssweenyI don't get a devicelist for her even when she is online
lovetoxso thats the problem
lovetoxwe dont receive a devicelist
lovetoxtry to quit conversations
lovetoxand restart it
lovetoxon your wifes phone
lovetoxthis should trigger a new publish of the keys
lovetoxafterwards you should get them on login
lovetoxit should not matter if she is online or not, just for your info
lovetoxsecond idea i have, is that for some reason you dont have correct subscription to her jid
lovetoxright click on her contact in gajim
lovetox-> manage contact -> subscription
lovetoxfirst 2 positions should be greyed out
lovetoxif both things dont help, i would try to go to servers log
lovetoxand see what happens when she restarts conversations
lovetoxdoes your server get the publised keys, is he saving it?
lovetoxyou could find help in the prosody channel about that
lovetoxsadly jabber servers are not easy to setup at the moment, it takes a lot of knowledge to get everything working
lovetoxit is though weird that we add a UI for her contact
lovetoxthis would mean we have gotten a device list in the past i think
ssweenyyeah that's what I don't get, like part of the info is getting through, or maybe gajim sees that it's getting carboned OMEMO messages and makes a decision based on that?
lovetoxdid it ever work?
lovetoxif you see the omemo button, could you deactivate encryption for her
lovetoxthen restart gajim
lovetoxtell me if it still adds the UI
ssweenyaha, now I get no OMEMO UI for her
lovetoxdid you ever delete fingerprints from the config menu?
lovetoxmaybe for other contacts?
lovetoxlike did you use that function at all
ssweenyno, I've only trusted fingerprints from that menu
ssweenyactually I think in that particular menu I've only activated trust for my own devices. I've never revoked and for other contacts I've trusted via the prompt
lovetoxthats really weird, it could be that there is a combination of bugs at work
lovetoxthough without receiving a devicelist at start, i dont think its useful to investigate the gajim plugin, im pretty sure the method that receives devices is bug free
ssweenyOK
ssweenywhen she gets home I'll steal her phone and play around with it some more :)
lovetoxmy guess is a restart of conversations fixes this :)
lovetoxbut in the long run its important that you make sure that your server really stores the published keys forever
lovetoxlike also on restarts etc
lovetoxupdates, ..
lovetoxalso if you really want to go forward with hosting your own server, you should definitly join the prosody channel
ssweenyoh I'm already there, I asked here because gajim is where the symptoms of the problem show up. If it's really a prosody bug I'll pester them next :)