Page 1 of 3

[solved] cant get deluged-debug.exe to log

Posted: Thu Apr 21, 2016 2:15 am
by haydent
*answer - should have been debug not DEBUG

*updated question, my problem is now that deluged-debug.exe produces no output if run :

deluged-debug.exe -L DEBUG

or

deluged-debug.exe -L DEBUG -l log.txt


have just taken the plugin template from the wiki and added a couple of log lines, then run deluge in debug (windows) but i never see the result of my code ??

Code: Select all

class Core(CorePluginBase):
    def enable(self):
        self.config = deluge.configmanager.ConfigManager("texttab.conf", DEFAULT_PREFS)
        log.info("enable")

    def disable(self):
        log.info("disable")

    def update(self):
       pass
running "deluge-debug.exe -L INFO" is see the system INFO messages that my plugin is being enabled and disabled but i dont see my INFO messages

Re: cant get my plugin to log

Posted: Thu Apr 21, 2016 4:02 am
by haydent
seems it was due to me not running classic mode, ie deluged daemon and client. in classic mode the logging happens, but not the other way.

i even run deluged-debug.exe -L INFO as well, but when in the mode (not classic) my log entries dont appear at all.

is there a different way you are meant to log from the daemon ?

Re: cant get my plugin to log

Posted: Thu Apr 21, 2016 4:20 am
by haydent
ok, so i worked out that if running non-classsic mode ie client and daemon you need to put logging commands in the gtkui.py to see them from the client process, but id still like to work out why i cant get the log output from the deluged daemon...

Re: cant get my plugin to log

Posted: Thu Apr 21, 2016 10:45 am
by bro
When running with daemon and GTKUI as thin client you have to separate processes. Naturally, you will not see the log statements from another process. You must specify one log file for the daemon and another for for the GTKUI and you should see all your log statments.

Re: cant get my plugin to log

Posted: Thu Apr 21, 2016 10:47 am
by haydent
yes i figured this but even when using "deluged-debug.exe -L INFO -l debug.txt" for the thin client it does not show any logs at all, not even with DEBUG.

Re: cant get my plugin to log

Posted: Thu Apr 21, 2016 11:26 am
by Cas
Sounds like it could be a permission issue with creating the log file

http://dev.deluge-torrent.org/wiki/Trou ... ficLogging

Re: cant get my plugin to log

Posted: Thu Apr 21, 2016 11:29 am
by haydent
its in windows with no such problem normally, the text file is created, and if there is a fatal error or something that gets logged but logging messages dont show up, also to show this i run daemon with out specifying log file so it should output to shell but nothing is shown... (thanks for your help so far)

Re: cant get my plugin to log

Posted: Thu Apr 21, 2016 2:55 pm
by Cas
I would not bring it up if it wasn't a potential issue on Windows, what path are you using for the log file?

Re: cant get deluged-debug.exe to log

Posted: Thu Apr 21, 2016 9:35 pm
by haydent
just deluged-debug.exe -L DEBUG -l log.txt so it creates it in the program folder

Re: cant get deluged-debug.exe to log

Posted: Thu Apr 21, 2016 9:58 pm
by Cas
Which is why the wiki link doesn't do that...