Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add Book Name Log on INFO Level Log When Auto Identify and Manual Identify #41

Closed
LazyGeniusMan opened this issue Feb 9, 2023 · 0 comments

Comments

@LazyGeniusMan
Copy link

Currently, INFO level log only show Series log like this:

08:36:39.551 [JettyServerThreadPool-93] INFO org.snd.mediaserver.MetadataService - attempting to match series "Boku no Hero Academia" MediaServerSeriesId(id=0BD6WG32B275F)
08:36:42.126 [JettyServerThreadPool-93] INFO org.snd.mediaserver.MetadataService - found match: "Boku no Hero Academia" from MANGA_UPDATES  ProviderSeriesId(id=63868402874)
08:44:04.765 [JettyServerThreadPool-93] INFO org.snd.mediaserver.MetadataService - finished metadata update of series "Boku no Hero Academia" MediaServerSeriesId(id=0BD6WG32B275F)

DEBUG level log show log like this:

09:08:50.810 [JettyServerThreadPool-26] INFO org.snd.mediaserver.MetadataService - attempting to match series "Grand Blue" MediaServerSeriesId(id=0BD6WG1BF2AHK)
09:08:50.810 [JettyServerThreadPool-26] DEBUG org.snd.module.MetadataModule - --> POST https://api.mangaupdates.com/v1/series/search (192-byte body)
09:08:51.268 [JettyServerThreadPool-26] DEBUG org.snd.module.MetadataModule - <-- 200 https://api.mangaupdates.com/v1/series/search (457ms, unknown-length body)
09:08:51.270 [JettyServerThreadPool-26] DEBUG org.snd.module.MetadataModule - --> GET https://api.mangaupdates.com/v1/series/65672018770
09:08:51.669 [JettyServerThreadPool-26] DEBUG org.snd.module.MetadataModule - <-- 200 https://api.mangaupdates.com/v1/series/65672018770 (398ms, unknown-length body)
09:08:51.671 [JettyServerThreadPool-26] DEBUG org.snd.module.MetadataModule - --> GET https://cdn.mangaupdates.com/image/i389071.jpg
09:08:51.989 [JettyServerThreadPool-26] DEBUG org.snd.module.MetadataModule - <-- 200 https://cdn.mangaupdates.com/image/i389071.jpg (317ms, 13027-byte body)
09:08:52.055 [JettyServerThreadPool-26] INFO org.snd.mediaserver.MetadataService - found match: "Grand Blue" from MANGA_UPDATES  ProviderSeriesId(id=65672018770)
09:08:52.056 [JettyServerThreadPool-26] DEBUG org.snd.module.MediaServerModule - --> GET http://localhost:8080/api/v1/series/0BD6WG1BF2AHK/books?unpaged=true
09:08:52.076 [JettyServerThreadPool-26] DEBUG org.snd.module.MediaServerModule - <-- 200 http://localhost:8080/api/v1/series/0BD6WG1BF2AHK/books?unpaged=true (19ms, 23273-byte body)
09:08:52.092 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Executing query          : select SERIES_THUMBNAILS.SERIES_ID, SERIES_THUMBNAILS.SERVER_TYPE, SERIES_THUMBNAILS.THUMBNAIL_ID from SERIES_THUMBNAILS where (SERIES_THUMBNAILS.SERIES_ID = ? and SERIES_THUMBNAILS.SERVER_TYPE = ?)
09:08:52.093 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - -> with bind values      : select SERIES_THUMBNAILS.SERIES_ID, SERIES_THUMBNAILS.SERVER_TYPE, SERIES_THUMBNAILS.THUMBNAIL_ID from SERIES_THUMBNAILS where (SERIES_THUMBNAILS.SERIES_ID = '0BD6WG1BF2AHK' and SERIES_THUMBNAILS.SERVER_TYPE = 'KOMGA')
09:08:52.095 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Fetched result           : +---------+-----------+------------+
09:08:52.096 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener -                          : |SERIES_ID|SERVER_TYPE|THUMBNAIL_ID|
09:08:52.096 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener -                          : +---------+-----------+------------+
09:08:52.097 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Fetched row(s)           : 0
09:08:52.097 [JettyServerThreadPool-26] DEBUG org.snd.module.MediaServerModule - --> GET http://localhost:8080/api/v1/series/0BD6WG1BF2AHK/thumbnails
09:08:52.104 [JettyServerThreadPool-26] DEBUG org.snd.module.MediaServerModule - <-- 200 http://localhost:8080/api/v1/series/0BD6WG1BF2AHK/thumbnails (6ms, 2-byte body)
09:08:52.105 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Executing query          : delete from SERIES_THUMBNAILS where (SERIES_THUMBNAILS.SERIES_ID = ? and SERIES_THUMBNAILS.SERVER_TYPE = ?)
09:08:52.106 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - -> with bind values      : delete from SERIES_THUMBNAILS where (SERIES_THUMBNAILS.SERIES_ID = '0BD6WG1BF2AHK' and SERIES_THUMBNAILS.SERVER_TYPE = 'KOMGA')
09:08:52.108 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Affected row(s)          : 0
09:08:52.442 [HikariPool-1 housekeeper] DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Pool stats (total=1, active=0, idle=1, waiting=0)
09:08:52.442 [HikariPool-1 housekeeper] DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Fill pool skipped, pool has sufficient level or currently being filled (queueDepth=0).
09:09:12.454 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Executing query          : select BOOK_THUMBNAILS.BOOK_ID, BOOK_THUMBNAILS.SERVER_TYPE, BOOK_THUMBNAILS.SERIES_ID, BOOK_THUMBNAILS.THUMBNAIL_ID from BOOK_THUMBNAILS where (BOOK_THUMBNAILS.BOOK_ID = ? and BOOK_THUMBNAILS.SERVER_TYPE = ?)
09:09:12.455 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - -> with bind values      : select BOOK_THUMBNAILS.BOOK_ID, BOOK_THUMBNAILS.SERVER_TYPE, BOOK_THUMBNAILS.SERIES_ID, BOOK_THUMBNAILS.THUMBNAIL_ID from BOOK_THUMBNAILS where (BOOK_THUMBNAILS.BOOK_ID = '0BD6WG1BF2AHM' and BOOK_THUMBNAILS.SERVER_TYPE = 'KOMGA')
09:09:12.456 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Fetched result           : +-------+-----------+---------+------------+
09:09:12.456 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener -                          : |BOOK_ID|SERVER_TYPE|SERIES_ID|THUMBNAIL_ID|
09:09:12.457 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener -                          : +-------+-----------+---------+------------+
09:09:12.457 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Fetched row(s)           : 0
09:09:12.458 [JettyServerThreadPool-26] DEBUG org.snd.module.MediaServerModule - --> GET http://localhost:8080/api/v1/books/0BD6WG1BF2AHM/thumbnails
09:09:12.464 [JettyServerThreadPool-26] DEBUG org.snd.module.MediaServerModule - <-- 200 http://localhost:8080/api/v1/books/0BD6WG1BF2AHM/thumbnails (5ms, 84-byte body)
09:09:12.465 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Executing query          : delete from BOOK_THUMBNAILS where (BOOK_THUMBNAILS.BOOK_ID = ? and BOOK_THUMBNAILS.SERVER_TYPE = ?)
09:09:12.466 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - -> with bind values      : delete from BOOK_THUMBNAILS where (BOOK_THUMBNAILS.BOOK_ID = '0BD6WG1BF2AHM' and BOOK_THUMBNAILS.SERVER_TYPE = 'KOMGA')
09:09:12.467 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Affected row(s)          : 0
09:09:22.444 [HikariPool-1 housekeeper] DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Pool stats (total=1, active=0, idle=1, waiting=0)
09:09:22.444 [HikariPool-1 housekeeper] DEBUG com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Fill pool skipped, pool has sufficient level or currently being filled (queueDepth=0).
09:09:25.121 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Executing query          : select BOOK_THUMBNAILS.BOOK_ID, BOOK_THUMBNAILS.SERVER_TYPE, BOOK_THUMBNAILS.SERIES_ID, BOOK_THUMBNAILS.THUMBNAIL_ID from BOOK_THUMBNAILS where (BOOK_THUMBNAILS.BOOK_ID = ? and BOOK_THUMBNAILS.SERVER_TYPE = ?)
09:09:25.121 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - -> with bind values      : select BOOK_THUMBNAILS.BOOK_ID, BOOK_THUMBNAILS.SERVER_TYPE, BOOK_THUMBNAILS.SERIES_ID, BOOK_THUMBNAILS.THUMBNAIL_ID from BOOK_THUMBNAILS where (BOOK_THUMBNAILS.BOOK_ID = '0BD6WG1BF2AHN' and BOOK_THUMBNAILS.SERVER_TYPE = 'KOMGA')
09:09:25.122 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Fetched result           : +-------+-----------+---------+------------+
09:09:25.122 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener -                          : |BOOK_ID|SERVER_TYPE|SERIES_ID|THUMBNAIL_ID|
09:09:25.123 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener -                          : +-------+-----------+---------+------------+
09:09:25.123 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Fetched row(s)           : 0
09:09:25.123 [JettyServerThreadPool-26] DEBUG org.snd.module.MediaServerModule - --> GET http://localhost:8080/api/v1/books/0BD6WG1BF2AHN/thumbnails
09:09:25.129 [JettyServerThreadPool-26] DEBUG org.snd.module.MediaServerModule - <-- 200 http://localhost:8080/api/v1/books/0BD6WG1BF2AHN/thumbnails (5ms, 84-byte body)
09:09:25.130 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Executing query          : delete from BOOK_THUMBNAILS where (BOOK_THUMBNAILS.BOOK_ID = ? and BOOK_THUMBNAILS.SERVER_TYPE = ?)
09:09:25.132 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - -> with bind values      : delete from BOOK_THUMBNAILS where (BOOK_THUMBNAILS.BOOK_ID = '0BD6WG1BF2AHN' and BOOK_THUMBNAILS.SERVER_TYPE = 'KOMGA')
09:09:25.132 [JettyServerThreadPool-26] DEBUG org.jooq.tools.LoggerListener - Affected row(s)          : 0

Eventhough it's logging book level, it's only show the book ID which not really human readable.

It would be nice if Book Name also got logged but in INFO level log similar to Series Name Log to know the progress of auto identify and manual identify especially in ComicInfo update mode where it could take a bit time to identify large series/library.

@Snd-R Snd-R closed this as completed in 9821b2c Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant