-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CLI: Reduce logging output in production environments #3370
Comments
Could you also describe your use case so we may propose a workaround or other parameters? |
@lastzero yes. I'm using duplicati to do a backup every day of all my system. When the photoprism backup command throws a message, duplicati undestand it as a warning, and i receive a mail that photoprism thows a message that i should review. This is working well in 2022.11 version. The first problem was after updating to 20230502 version. |
I have exactly the same problem, well described, I also use duplicati |
Signed-off-by: Michael Mayer <michael@photoprism.app>
My changes reduce the logger output to an absolute minimum when you combine
An updated development preview will be available soon. Happy testing! |
The preview image has been updated so you can test if it works for you: |
Thank you very much @lastzero. I will check as soon as I arrive home this afternoon 😊 |
@lastzero is the preview image multi-arch?
SOLVED using photoprism/photoprism:preview-arm64 |
It's an old tag, don't use it. I've started a new multi-arch preview build for you. |
Preview and tag updated, so you can test it on ARM64. |
The preview-arm64 works:
But is and old tag. Testing the new one |
@lastzero, working great. Build 230505-7a7ffbced Default log level:
Warning log level:
Default log level with --prod
Warning log level with --prod
I see no differences between using --prod or not. But in both cases info errors are no longer displayed when the warning level is specified :-) |
The |
Would it be acceptable for you to use the preview build for the next few days until we have enough other changes so that it's worth tagging a new stable release? |
@lastzero sure :-). If I can test something else, just tell me it. |
We've released this as an update for you today: |
1. What is not working as documented?
photoprism backup CLI thows a new info message in 2023.05 version which appears even when you set the log level to warning
2. How can we reproduce it?
In the CLI, execute the following command:
docker exec photoprism photoprism -l warning backup -i -f
3. What behavior do you expect?
Do not see info errors
4. What could be the cause of your problem?
A new message has been created using a different logger, or using an inappropriate log level
5. Can you provide us with example files for testing, error logs, or screenshots?
An execution without specifying the log level (default is info) returns the following messages, that is right:
An execution specifying the log level to warning returns the following messages, that is wrong:
As you can see, now it doesn't show any info message except the "config: plus extension loaded" message, which is info and should NOT appear. The last message is correct, because it has warning level.
6. Which software versions do you use?
(a) PhotoPrism ARM64 Build 230504-cbf48798c
(b) MariaDB 10.11
(c) Debian Bullseye 64 bits.
(d) Browser Types: N/A
(e) Ad Blockers; N/A
7. On what kind of device is PhotoPrism installed?
Indifferent
8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?
Indifferent
The text was updated successfully, but these errors were encountered: