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

immich-go 1.0.0-alpha1 - Log style and debug #500

Open
raidolo opened this issue Oct 10, 2024 · 0 comments
Open

immich-go 1.0.0-alpha1 - Log style and debug #500

raidolo opened this issue Oct 10, 2024 · 0 comments
Assignees

Comments

@raidolo
Copy link

raidolo commented Oct 10, 2024

Hi @simulot

as discussed in Discord, to debug the uploads, I've found very useful to have main metadata of an asset in the immich-go logs.
With the "stable" version I was able to track down an issue with an asset timestamp, so it would be good to include in the logs, even at "info" level, the following: the upload asset name, the "create date" timestamp that will be used and probably the GPS coords if available.

Thanks!

@simulot simulot self-assigned this Oct 12, 2024
simulot added a commit that referenced this issue Oct 13, 2024
* Refactor LocalAssetFile to add LogValue method

* Refactor readFolder.go to not group photo and move with a different capture date

* Refactor readFolder.go to improve logging of associated metadata

* Refactor log.go to separate log file opening logic

* readFolder: adapt tests to write a log

* Refactor metadata.go to add LogValue method

* Refactor log.go to use assetFile struct for logging in logMessage function

* Refactor json_test.go to include dateTaken and title fields in the test cases

* Refactor json.go to simplify the  GoogleMetaData struct, and fix the logValue()

* Refactor log.go to fanout log in file and console with different handler

* Refactor fileevent package to separate FileAndName struct and add LogValue method

* Refactor googlephotos.go to improve logging and metadata handling

* Fix json.go to handle photo taken time in GoogleMetaData struct

* Refactor googlephotos.go to handle photo taken time in GoogleMetaData struct

* Refactor uploadAsset method to improve error handling and logging

* Refactor upload/ui.go to use colored logs

* Refactor log.go to use console-slog for colored logs

* Refactor ui  to display google takeout progression

* Refactor error handling in main.go

* Update dependencies in go.mod
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

2 participants