debug info in the output is breaking json and xml #30

Closed
opened 2026-10-04 19:28:36 +00:00 by daniel · 1 comment
Owner

Imported from GitHub samson-media/barn#30 — opened by @daniel-samson on 2026-01-22 02:41:42 UTC

debug info in the output is breaking json and xml, eg

PS C:\Users\danielsamson> barn status --output=json
02:06:49.841 [main] DEBUG com.samsonmedia.barn.ipc.IpcClient -- Connected to IPC socket: C:\Users\DANIEL~1\AppData\Local\Temp\barn\barn.sock
02:06:49.843 [main] DEBUG com.samsonmedia.barn.ipc.IpcClient -- Sending IPC request: {"type":"get_status","payload":{}}
02:06:49.845 [main] DEBUG com.samsonmedia.barn.ipc.IpcClient -- Received IPC response: {"status":"ok","payload":[{"id":"job-ec2fb89a","state":"SUCCEEDED","command":["ping","-n","300","127.0.0.1"],"tag":"kill-test","createdAt":"2026-01-22T01:31:45.357741200Z","startedAt":"2026-01-22T01:52:48.460999100Z","finishedAt":"2026-01-22T01:57:54.239934600Z","exitCode":0,"error":"Process killed - daemon restarted","pid":3320,"heartbeat":"2026-01-22T01:57:48.525612400Z","retryCount":2,"retryAt":"2026-01-22T01:52:48.398867900Z","running":false,"terminal":true,"queued":false}]}
02:06:49.845 [main] DEBUG com.samsonmedia.barn.cli.StatusCommand -- IPC response type: java.util.ArrayList, value: [{id=job-ec2fb89a, state=SUCCEEDED, command=[ping, -n, 300, 127.0.0.1], tag=kill-test, createdAt=2026-01-22T01:31:45.357741200Z, startedAt=2026-01-22T01:52:48.460999100Z, finishedAt=2026-01-22T01:57:54.239934600Z, exitCode=0, error=Process killed - daemon restarted, pid=3320, heartbeat=2026-01-22T01:57:48.525612400Z, retryCount=2, retryAt=2026-01-22T01:52:48.398867900Z, running=false, terminal=true, queued=false}]
{
  "jobs" : [ {
    "id" : "job-ec2fb89a",
    "state" : "SUCCEEDED",
    "command" : [ "ping", "-n", "300", "127.0.0.1" ],
    "tag" : "kill-test",
    "createdAt" : "2026-01-22T01:31:45.357741200Z",
    "startedAt" : "2026-01-22T01:52:48.460999100Z",
    "finishedAt" : "2026-01-22T01:57:54.239934600Z",
    "exitCode" : 0,
    "error" : "Process killed - daemon restarted",
    "pid" : 3320,
    "heartbeat" : "2026-01-22T01:57:48.525612400Z",
    "retryCount" : 2,
    "retryAt" : "2026-01-22T01:52:48.398867900Z",
    "running" : false,
    "terminal" : true,
    "queued" : false
  } ],
  "summary" : {
    "total" : 1,
    "queued" : 0,
    "running" : 0,
    "succeeded" : 1,
    "failed" : 0,
    "canceled" : 0,
    "killed" : 0
  }
}
02:06:49.848 [main] DEBUG com.samsonmedia.barn.ipc.IpcClient -- Closed IPC connection
PS C:\Users\danielsamson>

the logger should output the log file not in the terminal output. please fix the logger, and test all commands.

<!-- github-import:issue:30 --> _Imported from GitHub samson-media/barn#30 — opened by **@daniel-samson** on 2026-01-22 02:41:42 UTC_ debug info in the output is breaking json and xml, eg ```sh PS C:\Users\danielsamson> barn status --output=json 02:06:49.841 [main] DEBUG com.samsonmedia.barn.ipc.IpcClient -- Connected to IPC socket: C:\Users\DANIEL~1\AppData\Local\Temp\barn\barn.sock 02:06:49.843 [main] DEBUG com.samsonmedia.barn.ipc.IpcClient -- Sending IPC request: {"type":"get_status","payload":{}} 02:06:49.845 [main] DEBUG com.samsonmedia.barn.ipc.IpcClient -- Received IPC response: {"status":"ok","payload":[{"id":"job-ec2fb89a","state":"SUCCEEDED","command":["ping","-n","300","127.0.0.1"],"tag":"kill-test","createdAt":"2026-01-22T01:31:45.357741200Z","startedAt":"2026-01-22T01:52:48.460999100Z","finishedAt":"2026-01-22T01:57:54.239934600Z","exitCode":0,"error":"Process killed - daemon restarted","pid":3320,"heartbeat":"2026-01-22T01:57:48.525612400Z","retryCount":2,"retryAt":"2026-01-22T01:52:48.398867900Z","running":false,"terminal":true,"queued":false}]} 02:06:49.845 [main] DEBUG com.samsonmedia.barn.cli.StatusCommand -- IPC response type: java.util.ArrayList, value: [{id=job-ec2fb89a, state=SUCCEEDED, command=[ping, -n, 300, 127.0.0.1], tag=kill-test, createdAt=2026-01-22T01:31:45.357741200Z, startedAt=2026-01-22T01:52:48.460999100Z, finishedAt=2026-01-22T01:57:54.239934600Z, exitCode=0, error=Process killed - daemon restarted, pid=3320, heartbeat=2026-01-22T01:57:48.525612400Z, retryCount=2, retryAt=2026-01-22T01:52:48.398867900Z, running=false, terminal=true, queued=false}] { "jobs" : [ { "id" : "job-ec2fb89a", "state" : "SUCCEEDED", "command" : [ "ping", "-n", "300", "127.0.0.1" ], "tag" : "kill-test", "createdAt" : "2026-01-22T01:31:45.357741200Z", "startedAt" : "2026-01-22T01:52:48.460999100Z", "finishedAt" : "2026-01-22T01:57:54.239934600Z", "exitCode" : 0, "error" : "Process killed - daemon restarted", "pid" : 3320, "heartbeat" : "2026-01-22T01:57:48.525612400Z", "retryCount" : 2, "retryAt" : "2026-01-22T01:52:48.398867900Z", "running" : false, "terminal" : true, "queued" : false } ], "summary" : { "total" : 1, "queued" : 0, "running" : 0, "succeeded" : 1, "failed" : 0, "canceled" : 0, "killed" : 0 } } 02:06:49.848 [main] DEBUG com.samsonmedia.barn.ipc.IpcClient -- Closed IPC connection PS C:\Users\danielsamson> ``` the logger should output the log file not in the terminal output. please fix the logger, and test all commands.
Author
Owner

@daniel-samson commented on 2026-01-22 03:03:52 UTC:

Fixed in commit f81c0fa. CLI commands now produce clean JSON/XML output without debug logs.

<!-- github-import:comment:3782265988 --> _**@daniel-samson** commented on 2026-01-22 03:03:52 UTC:_ Fixed in commit f81c0fa. CLI commands now produce clean JSON/XML output without debug logs.
This repo is archived. You cannot comment on issues.