-
Notifications
You must be signed in to change notification settings - Fork 48
DOCS-4140: Clarify where logs are #4444
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,9 @@ If not follow the steps for the standalone version. | |
{{< tabs >}} | ||
{{% tab name="Linux" %}} | ||
|
||
By default, `viam-server` writes logs to STDOUT and does not store them in a file on your machine. | ||
If you want to store your logs in a file, stop the running `viam-server` instance, and restart it with the `-logfile` option. | ||
|
||
1. First check where the `viam-server` binary is and where the machine cloud credentials file for your machine is: | ||
|
||
```sh {class="command-line" data-prompt="$" data-output="2"} | ||
|
@@ -89,6 +92,9 @@ If not follow the steps for the standalone version. | |
{{% /tab %}} | ||
{{% tab name="macOS" %}} | ||
|
||
`viam-server` writes logs to STDOUT and does not store them in a file on your machine. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Linux instruction makes sense but for the mac one, maybe clarify where STDOUT goes by default so there's more of a distinction between default behavior versus what -debug does? |
||
To view your logs, stop the running `viam-server` instance, and restart it with the `-debug` option which will sent the logs to STDOUT in the current terminal window. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't have a mac on hand to sanity check this, but this sounds wrong. I wouldn't expect the instructions for linux and mac to differ (especially if we no longer have the I expect that the
The |
||
|
||
1. Kill the running `viam-server` instance. | ||
2. Then run `viam-server` with the `-debug` option and pass in your machine cloud credentials file: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the broader context, I see where in a section where the viam-server is running as a standalone (not started via the
viam-agent
). I don't have a big opinion regarding this, but historically there was a third option for how theviam-server
is run.The classic installation script would have
systemctl
(on linux) manage theviam-server
. Which would write logs to a file thatjournalctl
could conjure.Again, given I don't think we surface that installation script any more, this information is accurate for when the viam-server is run by hand.