Skip to content

Commit

Permalink
fix: properly print long logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamer92000 committed Jan 7, 2025
1 parent 7b8c8ff commit 21be4ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/commands/fleet/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const showServerLogs = new Command()
.option("--stdout <stdout:boolean>", "Show stdout logs.", { default: true })
.option("--stderr <stderr:boolean>", "Show stderr logs.", { default: true })
.option(
"--since=<since:number>",
"--since=<since:string>",
"Only return logs newer (now - since) where since is a duration either as a number in seconds or with a time unit postfix (s, m, or h). e.g. 7d",
{
default: "7d",
Expand Down Expand Up @@ -231,7 +231,9 @@ const showServerLogs = new Command()
? "stdout"
: undefined,
);
console.log(data.logs);
for (const log of data.logs) {
console.log(log);
}
} catch (error) {
ensureApiException(error);
logErrorAndExit("Failed to get logs. Error: ", error.message);
Expand Down
2 changes: 1 addition & 1 deletion src/mod.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.9.0"
"version": "0.9.1"
}

0 comments on commit 21be4ca

Please sign in to comment.