jina-ai / jcloud

Simplify deploying and managing Jina projects on Jina Cloud

Home Page:https://docs.jina.ai/concepts/jcloud/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ANSI escape sequences are not well displayed in `jc logs`

mapleeit opened this issue · comments

Some strings [32m and [0m that control the font format are not well displayed.

❯ jc logs 804ace83de
[16:50:24] INFO     [32m        gateway@ 1[L]: Gateway with protocol GRPCGatewayRuntime started[0m                                      flow.py:276
           INFO     [32msandbox_executor/head@ 1[L]: Executor sandbox_executor/head started[0m                                          flow.py:276
           INFO     [33msandbox_executor@ 1[W]:You are using Jina version 3.0.0, however version 3.3.1 is available. You should         flow.py:276
                    consider upgrading via the "pip install --upgrade jina" command.[0m

yes, it is a server-side problem.

Server-side should add JINA_LOG_NO_COLOR tags on every running flow:

JINA_LOG_NO_COLOR=1 jina flow --uses toy-flow.yml

This will not add ANSI color chars to the logs.