Skip to content

Commit

Permalink
Fixed bug with logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kha84 committed Sep 3, 2022
1 parent 5e8f1e6 commit f5818ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ rm /usr/local/bin/sayit

When the voice assistant is installed as service, logs will be collected by journald, and you can see them like this:
```
journalctl -a -p7 -f -u voiceassistant.service
journalctl -f -u voiceassistant.service
```
... then press [SHIFT] + [F]

If you executed the assistant from the command line, logs will be printed there.
If you executed the assistant from the command line, logs will be printed right to stdout as usual.

### Audio issues

Expand Down
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def take_command():

def run_alexa():
command = take_command()
print("run_alexa() got command: " + command)
if not command:
return
# if 'play' in command:
Expand Down
7 changes: 4 additions & 3 deletions voiceassistant.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
Description=Voice Assistant

[Service]
ExecStart=/usr/bin/python3 /home/pi/projects/pgttsjaisrar/main.py
Type=simple
ExecStart=/usr/bin/python3 -u /home/pi/projects/pgttsjaisrar/main.py
User=pi
StandardOutput=syslog
StandardError=syslog
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

0 comments on commit f5818ef

Please sign in to comment.