This commit is contained in:
Sergey Krashevich 2023-06-19 23:52:46 +03:00
parent b42cf37d92
commit bcef94de4a
No known key found for this signature in database
GPG Key ID: 625171324E7D3856

View File

@ -1611,7 +1611,9 @@ def logs(service: str):
log_locations = { log_locations = {
"frigate": "/dev/shm/logs/frigate/current", "frigate": "/dev/shm/logs/frigate/current",
"go2rtc": "/dev/shm/logs/go2rtc/current", "go2rtc": "/dev/shm/logs/go2rtc/current",
"nginx": "/dev/shm/logs/nginx/error_log" if current_app.frigate_config.logger.default in ["warning", "error", "critical"] else "/dev/shm/logs/nginx/access_log", "nginx": "/dev/shm/logs/nginx/error_log"
if current_app.frigate_config.logger.default in ["warning", "error", "critical"]
else "/dev/shm/logs/nginx/access_log",
} }
service_location = log_locations.get(service) service_location = log_locations.get(service)