Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-3935

Use alternate name for monolog files created by cron

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Currently log files use the name format "general-[message level]-[date].log"

      When logging from the cron we should use a different file name to prevent conflicts of file ownership. "general-[message level]-[date]-cron.log"

      The second answer on this thread seems like a fairly robust solution https://stackoverflow.com/questions/933367/php-how-to-best-determine-if-the-current-invocation-is-from-cli-or-web-server

        Issue Links

          Activity

          jonathan Jonathan Reissmueller created issue -
          jonathan Jonathan Reissmueller made changes -
          Field Original Value New Value
          Rank Ranked higher
          jonathan Jonathan Reissmueller made changes -
          Story Points 3
          jonathan Jonathan Reissmueller made changes -
          Link This issue blocks CORE-3936 [ CORE-3936 ]
          jonathan Jonathan Reissmueller made changes -
          Assignee Jonathan Reissmueller [ jonathan ]
          jonathan Jonathan Reissmueller made changes -
          Fix Version/s 5.0.0-b1 [ 11107 ]
          Fix Version/s Short Term [ 10800 ]
          jonathan Jonathan Reissmueller made changes -
          Sprint 5.0.0 Sprint 2 [ 119 ]
          jonathan Jonathan Reissmueller made changes -
          Rank Ranked lower
          Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
          Status Open [ 1 ] In Progress [ 3 ]
          Automated transition triggered when Jonathan Reissmueller created pull request #1000 in Stash -
          Status In Progress [ 3 ] In Review [ 5 ]
          Resolution Fixed [ 1 ]
          jonathan Jonathan Reissmueller made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 1 hour, 49 minutes [ 6540 ]
          Worklog Id 14318 [ 14318 ]
          Automated transition triggered when Jonathan Reissmueller merged pull request #1000 in Stash -
          Status In Review [ 5 ] Closed [ 6 ]
          abdy Abdy Franco made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          abdy Abdy Franco made changes -
          Time Spent 1 hour, 49 minutes [ 6540 ] 2 hours [ 7200 ]
          Worklog Id 14326 [ 14326 ]
          abdy Abdy Franco made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              jonathan Jonathan Reissmueller
              Reporter:
              jonathan Jonathan Reissmueller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                23/Dec/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h

                  Agile