mirror of https://github.com/coder/code-server.git
Compare commits
2 Commits
c26ac35b25
...
26c763485b
Author | SHA1 | Date |
---|---|---|
Asher | 26c763485b | |
Asher | d431c9cd9d |
|
@ -248,9 +248,10 @@ export class ParentProcess extends Process {
|
|||
const opts = {
|
||||
size: "10M",
|
||||
maxFiles: 10,
|
||||
path: path.join(paths.data, "coder-logs"),
|
||||
}
|
||||
this.logStdoutStream = rfs.createStream(path.join(paths.data, "coder-logs", "code-server-stdout.log"), opts)
|
||||
this.logStderrStream = rfs.createStream(path.join(paths.data, "coder-logs", "code-server-stderr.log"), opts)
|
||||
this.logStdoutStream = rfs.createStream("code-server-stdout.log", opts)
|
||||
this.logStderrStream = rfs.createStream("code-server-stderr.log", opts)
|
||||
|
||||
this.onDispose(() => this.disposeChild())
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ describe("settings", () => {
|
|||
const settings = new SettingsProvider<CoderSettings>(pathToMockSettingsFile)
|
||||
await settings.read()
|
||||
// This happens when we can't parse a JSON (usually error in file)
|
||||
expect(logger.warn).toHaveBeenCalledWith("Unexpected token t in JSON at position 29")
|
||||
expect(logger.warn).toHaveBeenCalledWith(expect.stringMatching(/Unexpected token/))
|
||||
})
|
||||
})
|
||||
describe("with invalid settings file path", () => {
|
||||
|
|
Loading…
Reference in New Issue