fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.6k stars 148 forks source link

Add logging for easier to debug #435

Closed hongquan closed 5 years ago

hongquan commented 5 years ago

Fixes #423

Checklist [x]-I have read the Contribution & Best practices Guide and my PR follows them. [x]-My branch is up-to-date with the Upstream master branch. [x]-The unit tests pass locally with my changes [x]-I have added tests that prove my fix is effective or that my feature works [x]-I have added necessary documentation (if appropriate) [x]-All the functions created/modified in this PR contain relevant docstrings.

Test Passing []- The SUSI Server must be building on the pi on bootup []- The hotword detection should have a decent accuracy []- SUSI Linux shouldn't crash when switching from online to offline and vice versa (failing as of now) []- SUSI Linux should be able to boot offline when no internet connection available (failing)

Short description of what this resolves:

Changes proposed in this pull request:

hongquan commented 5 years ago

Test-susi_1.log

hongquan commented 5 years ago

By default, the log is not produced. To let the log produced, add the option -v (verbose) to the command.

python3 -m main -v

You can add one more v to increase the verbosity level:

python3 -m main -vv