Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Use correct config option for the log path. #5

Merged
merged 2 commits into from
Feb 15, 2023

Conversation

gmsoft-tuxicoman
Copy link
Contributor

The cli client is using the wrong config option to infer the log path.

From ovos-utils, it's using logs.path :
https://github.com/OpenVoiceOS/ovos-utils/blob/c9b1b560dab02d13a77bd9c1f3ad788e65fb9c13/ovos_utils/log.py#L53

This PR fixes this problem.

@gmsoft-tuxicoman
Copy link
Contributor Author

I revisited the code. The reference to log_dir is there in the original mycroft cli client but nowhere else.
The way I understand hit is that you could point to a different location for the logs if you were running the cli client as a different user or something like that.

I've reworked the change to add a deprecated warning and still honor log_dir if it's the only variable present.

@gmsoft-tuxicoman
Copy link
Contributor Author

@JarbasAl anything else needed on this PR ?

@JarbasAl JarbasAl merged commit 48109e9 into OpenVoiceOS:dev Feb 15, 2023
@JarbasAl JarbasAl mentioned this pull request Feb 15, 2023
93 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants