debug info requests

Get help, report and discuss bugs.
mastervol

debug info requests

Post by mastervol » 07 Feb 2009, 09:38

hi hugbug

i have 2 small requests:

1) can you echo the subversion when using the -v switch:

/mnt/HD_a2/share1/downloads # nzbget -v
nzbget version: 0.6.0-testing
/mnt/HD_a2/share1/downloads #

request:
/mnt/HD_a2/share1/downloads # nzbget -v
nzbget version: 0.6.0-testing-r269
/mnt/HD_a2/share1/downloads #

2) can you echo an INFO statement when downloading is finished:

e.g.:
Sat Feb 7 10:14:56 2009 INFO Queue Downloaded - 20 paused files remaining


that would help
thx

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: debug info requests

Post by hugbug » 07 Feb 2009, 16:47

mastervol wrote:1) can you echo the subversion when using the -v switch:
Unfortunately I do not see any way how to do that :(
mastervol wrote:2) can you echo an INFO statement when downloading is finished:
Sat Feb 7 10:14:56 2009 INFO Queue Downloaded - 20 paused files remaining
I can do that. But can you explain what is the purpose of that message?

DrChair

Re: debug info requests

Post by DrChair » 07 Feb 2009, 19:26

hugbug wrote:
mastervol wrote:1) can you echo the subversion when using the -v switch:
Unfortunately I do not see any way how to do that :(
You could let ./configure look into .svn\entries for the svn-version. (line 4 seams to hold the version)

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: debug info requests

Post by hugbug » 07 Feb 2009, 23:14

DrChair wrote:You could let ./configure look into .svn\entries for the svn-version. (line 4 seams to hold the version)
Good idea.

But line 4 doesn't work for me.
After small investigation I've found that the line is updated on "svn update" but is keeped old on commits ("svn commit"). It's not a problem for others, but a little inconvenience for me. However if I will not forget to "update" before preparing releases, it should work.

I'll do it, but it can time some time because of:
1) it's better to parse "entries" from makefile instead of configure, because not every update ("svn update") requires reconfiguring. I have to learn how to write makefiles, never did this before :)
2) it should be possible to take the revision number not only from ".svn" but also from a regular file, which would be supplied in a distribution archive. The make-script must first look if ".svn" exists: if "true" - it can take revision from ".svn" and write it to revision-file. If "false" - just use the revision-value from the revision-file.

Unfortunately I'm not good at script writing. Any help would be appreciated.

mastervol

Re: debug info requests

Post by mastervol » 19 Feb 2009, 19:53

the thing is that i usually just check the log file what is going on ..
if the last line in the log is something like i mentioned (all downloads complete), it would be an easy thing to check and i don't have to login via ssh/telnet ;-)

mastervol

Re: debug info requests

Post by mastervol » 19 Feb 2009, 22:34

also is it possible to add the "remaining download time" (average) to the -L option?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: debug info requests

Post by hugbug » 23 Feb 2009, 22:16

I'll implement your requests in 0.7.0.

mastervol

Re: debug info requests

Post by mastervol » 24 Feb 2009, 13:13

cool thx
much appreciated :-)

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: debug info requests

Post by hugbug » 19 Apr 2009, 20:00

mastervol wrote: 1) can you echo the subversion when using the -v switch:
Implemented in r296
mastervol wrote:also is it possible to add the "remaining download time" (average) to the -L option?
Added in r301
mastervol wrote: 2) can you echo an INFO statement when downloading is finished:
e.g.:
Sat Feb 7 10:14:56 2009 INFO Queue Downloaded - 20 paused files remaining
Do you still need this or nzbget -L S is enough?

mastervol

Re: debug info requests

Post by mastervol » 20 Apr 2009, 20:51

consider the current switches to be sufficient, i'll let you know otherwise.
i will test it this weekend.

thx

Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests