question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong formatting of ouputs from management commands

See original GitHub issue

If I do for e.g. sls wsgi manage local -c "check --list-tags", the output is not printed in seperate lines but as follows in one line: "admin\ncaches\ndatabase\nmodels\nstaticfiles\ntemplates\nurls\n".

Is this OS related, as your docs suggests the right format? I am using docker with FROM python:3.6-stretch.

Any idea?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ptrhckcommented, Mar 26, 2019

Adding the following to the Dockerfile solved the problem:

ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
0reactions
logandkcommented, Aug 4, 2019

Finally had a chance to look into why your output was different when running sls wsgi manage local versus manage.py directly. AFAICT, it’s because the WSGI logging configuration differs from the regular Django logging configuration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Addressing the Format challenges in PowerShell · Issue #10463
Producing output formatted in a specific way from a command is easy ... (e.g. $Error for errors) where you don't want the same...
Read more >
19923 (traceback handling in management commands)
The default behavior for management commands to suppress tracebacks, ... Any other error raised would always be formatted and displayed with it's traceback....
Read more >
Formatting, aliases, providers, comparison - PowerShell
This chapter introduces the concepts of output formatting, command aliases, providers, and comparison operations.
Read more >
Formatting tricks for the Linux date command | Enable Sysadmin
The real customization of the date command occurs when you start adding format controls. The controls can order output fields, manage ...
Read more >
Setting the AWS CLI output format
Control the format of the output from the AWS Command Line Interface (AWS CLI). ... IsTruncated: false Users: - Arn: arn:aws:iam::123456789012:user/Admin ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found