[PP-Script] Logger.py - save processing log into file

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
Post Reply
kjKmcQN3
Posts: 75
Joined: 29 Aug 2015, 15:09

[PP-Script] Logger.py - save processing log into file

Post by kjKmcQN3 » 30 Oct 2015, 11:27

Admin: Logger.py is a script included with NZBGet. It's merely a demo script, especially after adding of [New Feature] Per-nzb logging.

Please use this topic for all questions related to the script.
Admin end


I tried using logger for the first time today and got the error message "Logger: Destination directory doesn't exist, exiting". Logger is the last script in my sort order, as I presume it is supposed to be. Here is a relevant blurb from my logs. Any ideas on what I am doing wrong?

INFO Fri Oct 30 2015 16:42:26 Collection Dangerous.Liaisons.1988.720p.BluRay.x264-NGP added to history
DETAIL Fri Oct 30 2015 16:42:26 Deleting file Dangerous.Liaisons.1988.720p.subs.vol07+7.PAR2 from download queue
DETAIL Fri Oct 30 2015 16:42:26 Deleting file Dangerous.Liaisons.1988.720p.subs.vol03+4.PAR2 from download queue
DETAIL Fri Oct 30 2015 16:42:26 Deleting file Dangerous.Liaisons.1988.720p.subs.vol01+2.PAR2 from download queue
DETAIL Fri Oct 30 2015 16:42:26 Deleting file Dangerous.Liaisons.1988.720p.subs.vol00+1.PAR2 from download queue
INFO Fri Oct 30 2015 16:42:26 Cleaning up download queue for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:26 Post-process-script Logger.py for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP skipped
INFO Fri Oct 30 2015 16:42:26 Logger: Destination directory doesn't exist, exiting
INFO Fri Oct 30 2015 16:42:26 Executing post-process-script Logger.py for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:26 Post-process-script videosort/VideoSort.py for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP successful
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.r05.2
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.r05.1
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.nfo
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.BluRay.x264.Swed.srt
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.BluRay.x264.French.srt
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.BluRay.x264.Finn.srt
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.BluRay.x264.Esp.srt
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.BluRay.x264.Dutch.srt
INFO Fri Oct 30 2015 16:42:25 VideoSort: Deleted: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.BluRay.x264.Arab.srt
INFO Fri Oct 30 2015 16:42:25 VideoSort: Moved: /Volumes/Transfer/complete/Dangerous Liaisons.mkv
INFO Fri Oct 30 2015 16:42:25 Executing post-process-script videosort/VideoSort.py for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:25 Post-process-script DeleteSamples.py for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP successful
INFO Fri Oct 30 2015 16:42:25 DeleteSamples: Deleting sample file: /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP/Dangerous.Liaisons.1988.720p.sample.mkv
INFO Fri Oct 30 2015 16:42:25 DeleteSamples: Script triggered from NZBGet Version 16.3.
INFO Fri Oct 30 2015 16:42:25 Executing post-process-script DeleteSamples.py for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:25 Post-process-script FailureLink.py for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP successful
INFO Fri Oct 30 2015 16:42:24 Executing post-process-script FailureLink.py for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:24 Move for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP successful
INFO Fri Oct 30 2015 16:42:24 Moving file Dangerous.Liaisons.1988.720p.sample.mkv to /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:24 Moving file Dangerous.Liaisons.1988.720p.r05.2 to /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:24 Moving file Dangerous.Liaisons.1988.720p.r05.1 to /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:24 Moving file Dangerous.Liaisons.1988.720p.nfo to /Volumes/Transfer/complete/Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:24 Moving completed files for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP
INFO Fri Oct 30 2015 16:42:24 Cleanup for Dangerous.Liaisons.1988.720p.BluRay.x264-NGP successful

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

Re: [PP-Script] Logger.py - save processing log into file

Post by hugbug » 30 Oct 2015, 11:52

It does work. The purpose of the script to save log-file into destination directory.
In your case - since the directory doesn't exist anymore the script can't do its work.

The directory was probably deleted by VideoSort if you activated Cleanup there.

But don't worry, you don't need Logger.py anyway. In web-ui click on history item, then on button "Log".

kjKmcQN3
Posts: 75
Joined: 29 Aug 2015, 15:09

Re: [PP-Script] Logger.py - save processing log into file

Post by kjKmcQN3 » 30 Oct 2015, 12:07

Thanks for clarifying. Is there a way to save the log that is accessed via the web-ui?

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

Re: [PP-Script] Logger.py - save processing log into file

Post by hugbug » 30 Oct 2015, 12:23

There is no an easy way for that currently. But you can select the text in browser and copy.

I've created a task in issue tracker - Save nzb-log into a file (directly from web-ui) #108.

kjKmcQN3
Posts: 75
Joined: 29 Aug 2015, 15:09

Re: [PP-Script] Logger.py - save processing log into file

Post by kjKmcQN3 » 31 Oct 2015, 04:33

Got it. Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests