The SIO2 project
  1. The SIO2 project
  2. SIO-1284

filetracker-server support for logging to stderr

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Labels:
      None
    • Sprint:
      The First Sprint, The Second Sprint

      Description

      This is needed to use the supervisord's log rotation facility out of the box. For now filetracker logs are not rotated and it's not good...

        Activity

        Hide
        Marek Bardoński added a comment -
        I've prepared a pull request to visualize my idea.

        Anyway, still when I'll enter http://students.mimuw.edu.pl:9999/cokolwiek, then filetracker server respond with error 400, but no information about this is generated in logs. Please confirm, that this is a bad sign, and I'll investigate more.

        Show
        Marek Bardoński added a comment - I've prepared a pull request to visualize my idea. Anyway, still when I'll enter http://students.mimuw.edu.pl:9999/cokolwiek, then filetracker server respond with error 400, but no information about this is generated in logs. Please confirm, that this is a bad sign, and I'll investigate more.
        Hide
        Szymon Acedański added a comment -
        Yes, that's a bad sign. Before this change such a request was logged (albeit not to stderr, but to file named 'stderr').

        Have a look at what was logged before your first change, and the intended behavior is to log the same thing, just through stderr, so that supervisord will handle it. I think it's clear. Please do not send changes for review until you actually verified that this works.
        Show
        Szymon Acedański added a comment - Yes, that's a bad sign. Before this change such a request was logged (albeit not to stderr, but to file named 'stderr'). Have a look at what was logged before your first change, and the intended behavior is to log the same thing, just through stderr, so that supervisord will handle it. I think it's clear. Please do not send changes for review until you actually verified that this works.
        Hide
        Gerrit Gerrit added a comment -
        Change I146f47ff1e347a8c92bf1ff530e2bac1a4f3e5f7, patchset 3
        https://gerrit.sio2project.mimuw.edu.pl/1839

        SIO-1284 filetracker-server support for logging to stderr (fix to last commit)

        Change-Id: I146f47ff1e347a8c92bf1ff530e2bac1a4f3e5f7
        Show
        Gerrit Gerrit added a comment - Change I146f47ff1e347a8c92bf1ff530e2bac1a4f3e5f7, patchset 3 https://gerrit.sio2project.mimuw.edu.pl/1839 SIO-1284 filetracker-server support for logging to stderr (fix to last commit) Change-Id: I146f47ff1e347a8c92bf1ff530e2bac1a4f3e5f7
        Hide
        Marek Bardoński added a comment -
        Okey, now it's verified. I got this kind of messages processed via stderr to /logs/filetracker-supervisord.log

        Example message "77.115.72.123 students.mimuw.edu.pl:9999 - [05/Nov/2013:12:14:56 +0100] "GET /cokolwiekk HTTP/1.1" 404 345 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.123.1599.101 Safari/537.36"
        "

        No change to filetracker itself is need.
        Show
        Marek Bardoński added a comment - Okey, now it's verified. I got this kind of messages processed via stderr to /logs/filetracker-supervisord.log Example message "77.115.72.123 students.mimuw.edu.pl:9999 - [05/Nov/2013:12:14:56 +0100] "GET /cokolwiekk HTTP/1.1" 404 345 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.123.1599.101 Safari/537.36" " No change to filetracker itself is need.
        Hide
        Gerrit Gerrit added a comment -
        Change I146f47ff1e347a8c92bf1ff530e2bac1a4f3e5f7, patchset 4
        https://gerrit.sio2project.mimuw.edu.pl/1839

        SIO-1284 filetracker-server support for logging to stderr (fix to last commit)

        Change-Id: I146f47ff1e347a8c92bf1ff530e2bac1a4f3e5f7
        Show
        Gerrit Gerrit added a comment - Change I146f47ff1e347a8c92bf1ff530e2bac1a4f3e5f7, patchset 4 https://gerrit.sio2project.mimuw.edu.pl/1839 SIO-1284 filetracker-server support for logging to stderr (fix to last commit) Change-Id: I146f47ff1e347a8c92bf1ff530e2bac1a4f3e5f7

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Szymon Acedański
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile