Keep test output quiet with opt-in diagnostic logs (#25)
Test runs stay quiet by default. Diagnostic logs can be enabled explicitly when troubleshooting, while normal application logging and saved scenario output remain available. Resolves #22. --------- Co-authored-by: ars9 <ars9@pm.me> Co-authored-by: agent <agent@halstation.halstation.local> Reviewed-on: #25 Co-authored-by: agent-codex <agent-codex@ars9.space>
This commit was merged in pull request #25.
This commit is contained in:
1 parent
8b48d4812d
commit
c0fe15dc01
24 files changed
+250
-36
No files matched your search
@@ -20,6 +20,11 @@ export enum TraceMode {
|
||||
Off = "off",
|
||||
}
|
||||
|
||||
export enum LogMode {
|
||||
Console = "console",
|
||||
Debug = "debug",
|
||||
}
|
||||
|
||||
export class AppConfig {
|
||||
/** `production` in the Docker image; also selects the default CORS origins. */
|
||||
@IsString()
|
||||
@@ -40,6 +45,10 @@ export class AppConfig {
|
||||
@IsString()
|
||||
APP_VERSION: string = appPackage().version;
|
||||
|
||||
/** Route application diagnostics through `debug` instead of the console. */
|
||||
@IsEnum(LogMode)
|
||||
LOG_MODE: LogMode = LogMode.Console;
|
||||
|
||||
@IsString()
|
||||
DB_PATH: string = "data/liqa.db";
|
||||
|
||||
|
||||
Reference in new issue
Block a user