feat: use human-readable log format for local CLI commands (#2806)
* feat: use human-readable log format for local CLI commands
Coglet defaults to JSON structured logs for production (GKE/Stackdriver
compatibility), but this makes local development output hard to read.
Set LOG_FORMAT=console in cog serve, cog run, cog predict, and cog train
so developers see human-readable logs locally. Production is unaffected
since the env var is only set by the CLI for local commands.
* Update pkg/predict/predictor.go
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
* chore: appease the linter
Signed-off-by: Mark Phelps <mphelps@cloudflare.com>
---------
Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
Signed-off-by: Mark Phelps <mphelps@cloudflare.com>
Co-authored-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Co-authored-by: Mark Phelps <mphelps@cloudflare.com>
Co-authored-by: asahoo <anishsahoo2005@gmail.com>