mirror of
https://github.com/coder/coder.git
synced 2026-10-28 02:42:54 +08:00
feat: Enable workspace debug logging (#6838)
* feat: Enable workspace debug logging * Fix * Fix * Fix * fix * fix * Enable RBAC * unit tests * Fix * fix * fix * fix * more tests * fix: workspacebuild_test use roles * fix: swagger comment * fix: ctx.Done * fix: address PR comments * break loop
This commit is contained in:
@@ -473,7 +473,11 @@ func readAndLog(sink logSink, r io.Reader, done chan<- any, level proto.LogLevel
|
||||
|
||||
logLevel := convertTerraformLogLevel(log.Level, sink)
|
||||
if logLevel == proto.LogLevel_TRACE {
|
||||
continue // skip TRACE log entries as they produce a lot of noise
|
||||
// Skip TRACE log entries as they produce a lot of noise.
|
||||
//
|
||||
// FIXME consider config.ProvisionerLogLevel to enable custom level logging
|
||||
// instead of "just-debug-level" mode.
|
||||
continue
|
||||
}
|
||||
|
||||
// Degrade JSON log entries marked as INFO as these are logs produced in debug mode.
|
||||
|
||||
Reference in New Issue
Block a user