Page 1 of 1

How to set log level from config.ini

Posted: Fri Jul 10, 2020 2:56 pm
by perezmu
Hi! running mylar3 (dev branch).

Is there a way to make the "DEBUG" mode in the log default?

In config.ini I see there is an option "log_level=1" ... I tried to change it to 0 or 2, and that doesn't change anything in Mylar... so, how many log levels are there? and how to set them?

I am trying to pursue some bugs before raising an issue or asking here... (like Mylar inadvertently trying (and failing) to create folders under "/COMICS" when the folder for comics is set to "/comics" and usually works as that!)

Thanks!

Re: How to set log level from config.ini

Posted: Sat Jul 11, 2020 12:45 am
by evilhero
It's easier to just start Mylar with the -v switch when you start it. There are only 3 log levels if I recall correctly: INFO which is the default, DEBUG, and WARNING (which only logs errors).

Also, /COMICS is different than /comics on Unix based systems. Case-sensitive paths can co-exist, as opposed to Windows where /COMICS = /comics and case-sensitive paths are considered the same.

If it can't create the directory, then you have to call it exactly as you have it in your docker file (or w/e you're running if it's *nix based).

Otherwise, failure to create is almost always permissions based.

Re: How to set log level from config.ini

Posted: Mon Jul 13, 2020 7:18 am
by perezmu
Thanks...

Do you know how I could add the -v option to the hotio/mylar3 docker image?

Also, yes I am on Linux. The problem is my comics are in /comics, they are correctly configured, comics are correctly downloaded and moved in there by Mylar3.. but all of a sudden, Mylar3 decides they are under /COMICS and try to create folders there, and it fails, of course, because the directory does not exist. I am not able to consistently reproduce this. As soon as I do, I will let you know and send you the carepackage!

Thanks

Re: How to set log level from config.ini

Posted: Mon Jul 13, 2020 4:23 pm
by perezmu
Ok,

This is what I tried to explain!

Code: Select all

13-Jul-2020 16:05:51 - INFO    :: mylar.run.37 : ThreadPoolExecutor-0_2 : [RSS-FEEDS] RSS Feed Check Initalizing....
13-Jul-2020 16:05:51 - INFO    :: mylar.run.102 : ThreadPoolExecutor-0_2 : [RSS-FEEDS] Initiating RSS Feed Check for NZB Providers.
13-Jul-2020 16:05:57 - INFO    :: mylar.nzbs.609 : ThreadPoolExecutor-0_2 : [RSS] (experimental) 0 entries indexed.
13-Jul-2020 16:05:57 - INFO    :: mylar.nzbs.609 : ThreadPoolExecutor-0_2 : [RSS] (nzb.su) 0 entries indexed.
13-Jul-2020 16:05:57 - INFO    :: mylar.nzbs.609 : ThreadPoolExecutor-0_2 : [RSS] (dognzb) 100 entries indexed.
13-Jul-2020 16:05:57 - INFO    :: mylar.nzbs.609 : ThreadPoolExecutor-0_2 : [RSS] (nzbhydra2) 0 entries indexed.
13-Jul-2020 16:05:57 - INFO    :: mylar.nzbs.613 : ThreadPoolExecutor-0_2 : [RSS] 100 entries have been indexed and are now going to be stored for caching.
13-Jul-2020 16:12:56 - INFO    :: mylar.preSearchit.4521 : CP Server Thread-6 : [IMPORT] Issues found with valid ComicID information for : Joker Killer Smile [122480]
13-Jul-2020 16:12:56 - INFO    :: mylar.addbyid.520 : CP Server Thread-6 : Attempting to add directly by ComicVineID: 122480
13-Jul-2020 16:12:58 - INFO    :: mylar.addComictoDB.128 : CP Server Thread-6 : Now adding/updating: Joker: Killer Smile
13-Jul-2020 16:12:58 - INFO    :: mylar.addComictoDB.181 : CP Server Thread-6 : Sucessfully retrieved details for Joker: Killer Smile
13-Jul-2020 16:12:58 - INFO    :: mylar.addComictoDB.187 : CP Server Thread-6 : Previous version detected as None - seeing if update required
13-Jul-2020 16:12:58 - WARNING :: mylar.validateAndCreateDirectory.1720 : CP Server Thread-6 : [DIRECTORY-CHECK] Could not find comic directory: /comics/Mylar3/DC Comics/Joker Killer Smile (2019)
13-Jul-2020 16:12:58 - INFO    :: mylar.validateAndCreateDirectory.1723 : CP Server Thread-6 : [DIRECTORY-CHECK] Creating comic directory (0777) : /comics/Mylar3/DC Comics/Joker Killer Smile (2019)
13-Jul-2020 16:13:00 - INFO    :: mylar.preSearchit.4485 : CP Server Thread-10 : [IMPORT] There is an import already running. Please wait for it to finish, and then you can resubmit this import.
13-Jul-2020 16:13:04 - INFO    :: mylar.preSearchit.4521 : CP Server Thread-8 : [IMPORT] Issues found with valid ComicID information for : Batman The Adventures Continue [126144]
13-Jul-2020 16:13:04 - INFO    :: mylar.addbyid.520 : CP Server Thread-8 : Attempting to add directly by ComicVineID: 126144
13-Jul-2020 16:13:04 - INFO    :: mylar.addComictoDB.86 : CP Server Thread-8 : aliases currently: None
13-Jul-2020 16:13:04 - WARNING :: mylar.validateAndCreateDirectory.1720 : CP Server Thread-8 : [DIRECTORY-CHECK] Could not find comic directory: /COMICS/Mylar3/DC Comics/Batman The Adventures Continue (2020)
13-Jul-2020 16:13:04 - INFO    :: mylar.validateAndCreateDirectory.1723 : CP Server Thread-8 : [DIRECTORY-CHECK] Creating comic directory (0777) : /COMICS/Mylar3/DC Comics/Batman The Adventures Continue (2020)
13-Jul-2020 16:13:04 - WARNING :: mylar.validateAndCreateDirectory.1733 : CP Server Thread-8 : [DIRECTORY-CHECK] Could not create directory: /COMICS/Mylar3/DC Comics/Batman The Adventures Continue (2020) [[Errno 13] Permission denied: '/COMICS']. Aborting
13-Jul-2020 16:13:04 - WARNING :: mylar.addComictoDB.96 : CP Server Thread-8 : Error trying to validate/create directory. Aborting this process at this time.
13-Jul-2020 16:13:04 - INFO    :: mylar.preSearchit.4544 : CP Server Thread-8 : [IMPORT] Successfully verified import sequence data for : Batman The Adventures Continue. Currently adding to your watchlist.
13-Jul-2020 16:13:04 - INFO    :: mylar.preSearchit.4912 : CP Server Thread-8 : [IMPORT] Import completed.
13-Jul-2020 16:13:14 - INFO    :: mylar.toggleVerbose.4144 : CP Server Thread-6 : Verbose (DEBUG) logging is enabled
13-Jul-2020 16:13:14 - DEBUG   :: mylar.toggleVerbose.4145 : CP Server Thread-6 : If you can read this message, debug logging is now working
13-Jul-2020 16:13:14 - INFO    :: mylar.toggleVerbose.4148 : CP Server Thread-6 : config file has been loaded from: /config/app/config.ini
As you can see, it is correctly using the configured /comics directory (see 16:12:58), but if trying to manually import files, it tries to create dirs under /COMICS (see 16.13.04).

Can I post here my care package (is it safe to do?)

Thanks