dstack icon indicating copy to clipboard operation
dstack copied to clipboard

[Feature]: Always write server debug logs to a file

Open Egor-S opened this issue 1 year ago • 2 comments

Problem

In case of a problem with the dstack server, it's hard to investigate without debug logs, which are not always turned on. Re-running the server with a debug log level takes time and may not reproduce the issue.

Solution

Add additional logs handler, writing to ~/.dstack/server/logs/debug.log debug logs. We should use log rotation to limit disk usage.

Benefit

You can always get debug logs for recent events.

Alternatives

Always print debug logs to stdout

Would you like to help contributing this feature?

Yes

Egor-S avatar Feb 09 '24 09:02 Egor-S

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Mar 11 '24 01:03 peterschmidt85

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Apr 25 '24 01:04 peterschmidt85

This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.

peterschmidt85 avatar May 17 '24 01:05 peterschmidt85