from where is logging "Article ... missing" done?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

from where is logging "Article ... missing" done?

Post by sander »

Which part of SAB is doing this part of the logging:

Code: Select all

2011-08-27 18:22:44,449::INFO::[downloader:587] Thread 1@news.readfreenews.net:119: Article part4of77.uOT27djQblabla@powerpost2000AA.local missing (error=430)
Reason: I want to enhance the logging with successful downloads, and not just the missing / failed ones.

I did a brute force search, but I couldn't find anything useful:

Code: Select all

$ grep -i Article * */* */*/* */*/*/*  | grep -i missing | grep -i logging

sabnzbd/assembler.py:            logging.info(Ta('%s missing'), article)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: from where is logging "Article ... missing" done?

Post by shypike »

It says it does that in line 587 of downloader.py :)
Successful articles are already logged by the decoder.
If you insist on seeing more logging, add the command line option --log-all
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: from where is logging "Article ... missing" done?

Post by sander »

shypike wrote:It says it does that in line 587 of downloader.py :)
Successful articles are already logged by the decoder.
If you insist on seeing more logging, add the command line option --log-all
OMG! I thought that was a PID or thread id. Never realised it was the line number.

I don't see successfull downloads in my current log:

Code: Select all

$ grep part4of77.uOT27djQMMOSJuDzrMuA@powerpost2000AA.local sabnzbd.log
2011-08-27 18:22:04,446::INFO::[downloader:587] Thread 3@newszilla6.xs4all.nl:119: Article part4of77.uOT27djQMMOSJuDzrMuA@powerpost2000AA.local missing (error=430)
2011-08-27 18:22:15,464::INFO::[downloader:587] Thread 1@news.tiscali.nl:119: Article part4of77.uOT27djQMMOSJuDzrMuA@powerpost2000AA.local missing (error=430)
2011-08-27 18:22:44,449::INFO::[downloader:587] Thread 1@news.readfreenews.net:119: Article part4of77.uOT27djQMMOSJuDzrMuA@powerpost2000AA.local missing (error=430)

I will now check out --log-all.

Thanks
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: from where is logging "Article ... missing" done?

Post by sander »

With --log-all I still don't see positive alerts; only "missing". So please help me: where can I see the article was available on eweka (which I can only implicitly deduct from the logging)

Code: Select all

sander@R540:~/.sabnzbd/logs$ grep ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com sabnzbd.log
2011-08-27 20:20:32,669::DEBUG::[downloader:682] Thread 1@newszilla6.xs4all.nl:119: BODY ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com
2011-08-27 20:20:32,708::INFO::[downloader:587] Thread 1@newszilla6.xs4all.nl:119: Article ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com missing (error=430)
2011-08-27 20:20:32,708::DEBUG::[downloader:602] Thread 1@newszilla6.xs4all.nl:119: ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com done
2011-08-27 20:20:32,709::DEBUG::[trylist:50] Appending newszilla6.xs4all.nl:119 to <Article: article=ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com, bytes=351114, partnum=66, art_id=None>.__try_list
2011-08-27 20:20:32,709::DEBUG::[decoder:190] <Article: article=ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com, bytes=351114, partnum=66, art_id=None> => found at least one untested server
2011-08-27 20:20:42,503::DEBUG::[downloader:682] Thread 1@news.tiscali.nl:119: BODY ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com
2011-08-27 20:20:42,553::INFO::[downloader:587] Thread 1@news.tiscali.nl:119: Article ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com missing (error=430)
2011-08-27 20:20:42,554::DEBUG::[downloader:602] Thread 1@news.tiscali.nl:119: ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com done
2011-08-27 20:20:42,555::DEBUG::[trylist:50] Appending news.tiscali.nl:119 to <Article: article=ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com, bytes=351114, partnum=66, art_id=None>.__try_list
2011-08-27 20:20:42,557::DEBUG::[decoder:190] <Article: article=ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com, bytes=351114, partnum=66, art_id=None> => found at least one untested server
2011-08-27 20:21:22,178::DEBUG::[downloader:682] Thread 1@news.readfreenews.net:119: BODY ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com
2011-08-27 20:21:22,318::INFO::[downloader:587] Thread 1@news.readfreenews.net:119: Article ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com missing (error=430)
2011-08-27 20:21:22,318::DEBUG::[downloader:602] Thread 1@news.readfreenews.net:119: ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com done
2011-08-27 20:21:22,319::DEBUG::[trylist:50] Appending news.readfreenews.net:119 to <Article: article=ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com, bytes=351114, partnum=66, art_id=None>.__try_list
2011-08-27 20:21:22,321::DEBUG::[decoder:190] <Article: article=ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com, bytes=351114, partnum=66, art_id=None> => found at least one untested server
2011-08-27 20:21:22,383::DEBUG::[downloader:682] Thread 2@newsreader3.eweka.nl:119: BODY ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com
2011-08-27 20:21:22,835::DEBUG::[downloader:602] Thread 2@newsreader3.eweka.nl:119: ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com done
2011-08-27 20:21:22,835::DEBUG::[decoder:96] Decoding <Article: article=ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com, bytes=351114, partnum=66, art_id=None>
2011-08-27 20:21:22,843::DEBUG::[articlecache:148] Flushing <Article: article=ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com, bytes=351114, partnum=66, art_id=SABnzbd_article_bTcPMl> to disk
sander@R540:~/.sabnzbd/logs$ 


sander@R540:~/.sabnzbd/logs$ 
sander@R540:~/.sabnzbd/logs$ grep ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com sabnzbd.log | grep -i missing
2011-08-27 20:20:32,708::INFO::[downloader:587] Thread 1@newszilla6.xs4all.nl:119: Article ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com missing (error=430)
2011-08-27 20:20:42,553::INFO::[downloader:587] Thread 1@news.tiscali.nl:119: Article ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com missing (error=430)
2011-08-27 20:21:22,318::INFO::[downloader:587] Thread 1@news.readfreenews.net:119: Article ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com missing (error=430)
sander@R540:~/.sabnzbd/logs$ 


sander@R540:~/.sabnzbd/logs$ 
sander@R540:~/.sabnzbd/logs$ grep ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com sabnzbd.log | grep -i eweka
2011-08-27 20:21:22,383::DEBUG::[downloader:682] Thread 2@newsreader3.eweka.nl:119: BODY ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com
2011-08-27 20:21:22,835::DEBUG::[downloader:602] Thread 2@newsreader3.eweka.nl:119: ea6dnRJH7Yrt1STQnZ2dnUVZ8s8AAAAA@giganews.com done
sander@R540:~/.sabnzbd/logs$ 


User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: from where is logging "Article ... missing" done?

Post by shypike »

So you want to know which server had the article?
It says here:
2011-08-27 20:20:42,554::DEBUG::[downloader:602] Thread 1@news.tiscali.nl:119:
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: from where is logging "Article ... missing" done?

Post by sander »

shypike wrote:So you want to know which server had the article?
It says here:
2011-08-27 20:20:42,554::DEBUG::[downloader:602] Thread 1@news.tiscali.nl:119:
I can't believe that: news.tiscali.nl is a text-only newsserver (which I put there as kind of reference for a server with a retention of 0)
Post Reply