simulot / immich-go

An alternative to the immich-CLI command that doesn't depend on nodejs installation. It tries its best for importing google photos takeout archives.
GNU Affero General Public License v3.0
1.2k stars 36 forks source link

More verbose logging #234

Closed coltenkrauter closed 1 month ago

coltenkrauter commented 2 months ago

Love this project, it is very helpful.

I am in a position where my Google Takeout is more than 8TB, and each operation that runs is quite slow on my compute. It would be neat to see more logs related to what is going on. For example, I ran the following command,

immich-go -server https://redactedhost -key redacted-xxxxxxx -log-file=./log.txt upload -google-photos ./Takeout

And, after running for ~3 hours, I only see the following logs,

Server status: OK
Ask for server's assets...
24433 asset(s) received
Browsing google take out archive...
Associating JSON and assets...
Done.
Ready to upload files

And it has been sitting on Ready to upload files from this file (googlephotos.go#L410) for several minutes. I checked a resource monitor and I can see that things are still happening, but it would be neat to have the ability to see more logs, perhaps via a -debug or -verbose flag.

simulot commented 2 months ago

try with -log-level=INFO

There 2 long operations:

I'll make that more visible

coltenkrauter commented 1 month ago

Okay, that makes sense. Thank you!

simulot commented 1 month ago

with version 0.14, the log file is always generated with the level INFO.

Either the lean or the fancy user interface are showing the progression