Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 38
    • Merge requests 38
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slapos.core
  • Merge requests
  • !371

standalone: strip ansi code in logs

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jérome Perrin requested to merge fix/standalone_log_output into master Mar 22, 2022
  • 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
Reviewers
Request review from
Time tracking
Source branch: fix/standalone_log_output
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7