Page 1 of 1
from where is logging "Article ... missing" done?
Posted: August 27th, 2011, 11:46 am
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)
Re: from where is logging "Article ... missing" done?
Posted: August 27th, 2011, 12:50 pm
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
Re: from where is logging "Article ... missing" done?
Posted: August 27th, 2011, 12:57 pm
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
Re: from where is logging "Article ... missing" done?
Posted: August 27th, 2011, 1:24 pm
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$
Re: from where is logging "Article ... missing" done?
Posted: August 27th, 2011, 3:20 pm
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:
Re: from where is logging "Article ... missing" done?
Posted: August 27th, 2011, 3:37 pm
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)