Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slapos.core
  • Merge requests
  • !371

Merged
Created Mar 22, 2022 by Jérome Perrin@jeromeOwner

standalone: strip ansi code in logs

  • Overview 4
  • Commits 1
  • Pipelines 2
  • Changes 2

This fixes a bug when the program output contain some ansi code, like the \e[0;31m ansi code to display text in color on the terminal. These characters are not allowed in XML so if they end up in the XML-RPC messages this cause the underlying expat library to complain that the stream is not well-formed (invalid token).

Fortunately, supervisor supports this and has a strip_ansi option that we can set in the config to prevent these problems.

Edited Mar 22, 2022 by Jérome Perrin
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: fix/standalone_log_output
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7