Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4159

ATS 6.1.0 does not log to stdout when not started from shell

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: Core
    • Labels:

      Description

      I have a plugin that uses printf() to print some notice messages. Then my ATS is started by systemd with just `ExecStart=/usr/bin/traffic_manager`.

      With ATS 6.0.0 I could see the printf() from my plugin with journalctl. That's because the stdout of the service is connected to the journal.

      With ATS 6.1.0 the plugin output is not shown anymore with journalctl. However, starting `traffic_manager` from the shell actually shows the plugin output.
      No file under the log directory contains the plugin output.

      That makes me think there has been some change in 6.1.0 like: "if it's not a tty, close stdout", or something like that.

        Attachments

          Activity

            People

            • Assignee:
              amc Alan M. Carroll
              Reporter:
              lethalman Luca Bruno
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: