Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7075

Mac/OSX drop-down UI menu points to different log location

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: UI
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Only tested on MacOS

      Description

      logs on Mac OS are available under ~/Library/Application Support/Couchbase/var/lib/couchbase/logs but when clicking the "show logs" in the UI, we don't go to this path (we goto Couchbase.log under ~/Library/Logs)

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        don Don Pinto created issue -
        don Don Pinto made changes -
        Field Original Value New Value
        Description logs on Mac OS are available under ~/Library/Application Support/Couchbase/var/lib/couchbase/logs but when clicking the "show logs" in the UI, we don't go to this path logs on Mac OS are available under ~/Library/Application Support/Couchbase/var/lib/couchbase/logs but when clicking the "show logs" in the UI, we don't go to this path (we goto Couchbase.log under ~/Library/Logs)
        steve Steve Yen made changes -
        Assignee Farshid Ghods [ farshid ] Jens Alfke [ jens ]
        Hide
        steve Steve Yen added a comment -

        updated title

        Show
        steve Steve Yen added a comment - updated title
        steve Steve Yen made changes -
        Summary UI points to different log location Mac/OSX drop-down UI menu points to different log location
        Hide
        steve Steve Yen added a comment -

        Options discussed in bug-scrub...

        • remove the drop-down menu entry for View Logs.
        • fix the View Logs choice.

        Whatever's easier/less-intensive/less-riskier.

        Yaseen to followup with Jens – leaving open, although not a blocker, per bug-scrub mtg

        Show
        steve Steve Yen added a comment - Options discussed in bug-scrub... remove the drop-down menu entry for View Logs. fix the View Logs choice. Whatever's easier/less-intensive/less-riskier. Yaseen to followup with Jens – leaving open, although not a blocker, per bug-scrub mtg
        Hide
        jens Jens Alfke added a comment -

        ~/Library/Logs/Couchbase.log is a valid log file that the server writes to. I've used it to diagnose Erlang exceptions launching the server. But it sounds like it's less important than the ones in the App Support folder?
        Changing the app to open a different log file is trivial; even easier than taking out the command. However, that log directory has a lot of files in it. Unfortunately the Console app can't be told to view a directory, just an individual file.

        So the choices would be:
        (a) Pick a single file in 'logs' to open, if one of them is more important.
        (b) Make a submenu with items for all the significant log files
        (c) Make the menu command open the logs folder itself in the Finder (not terribly useful, because most of the files don't have filename extensions that indicate that they're text, so double-clicking them doesn't work.)

        Show
        jens Jens Alfke added a comment - ~/Library/Logs/Couchbase.log is a valid log file that the server writes to. I've used it to diagnose Erlang exceptions launching the server. But it sounds like it's less important than the ones in the App Support folder? Changing the app to open a different log file is trivial; even easier than taking out the command. However, that log directory has a lot of files in it. Unfortunately the Console app can't be told to view a directory, just an individual file. So the choices would be: (a) Pick a single file in 'logs' to open, if one of them is more important. (b) Make a submenu with items for all the significant log files (c) Make the menu command open the logs folder itself in the Finder (not terribly useful, because most of the files don't have filename extensions that indicate that they're text, so double-clicking them doesn't work.)
        Hide
        steve Steve Yen added a comment -

        I'd vote for (a), and please check with alk on which one's the right one.

        Option (b), might be "brittle", depending on how you do it. That is, if we change the logging files again in the server, it could be yet-another thing to fix in the future.

        Show
        steve Steve Yen added a comment - I'd vote for (a), and please check with alk on which one's the right one. Option (b), might be "brittle", depending on how you do it. That is, if we change the logging files again in the server, it could be yet-another thing to fix in the future.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        i also vote for option (a)

        there are many files in that folder and if user needs to collect diagnostics they use cbcollect info command anyways.

        Show
        farshid Farshid Ghods (Inactive) added a comment - i also vote for option (a) there are many files in that folder and if user needs to collect diagnostics they use cbcollect info command anyways.
        Hide
        steve Steve Yen added a comment -

        in bug-scrub mtg...

        option (d) - (alk proposes) pipe output of cbbrowse-logs to some window

        option (e) - remove this menu item and document the cbbrowse-logs command

        option (e) is the final bug-scrub mtg choice.

        Show
        steve Steve Yen added a comment - in bug-scrub mtg... option (d) - (alk proposes) pipe output of cbbrowse-logs to some window option (e) - remove this menu item and document the cbbrowse-logs command option (e) is the final bug-scrub mtg choice.
        Hide
        jens Jens Alfke added a comment -

        Removed the menu command from the UI. (No code change, just deleted the menu item from the nib.)
        Out for review: http://review.couchbase.org/#/c/22280/

        Show
        jens Jens Alfke added a comment - Removed the menu command from the UI. (No code change, just deleted the menu item from the nib.) Out for review: http://review.couchbase.org/#/c/22280/
        Hide
        steve Steve Yen added a comment -

        Thanks Jens - resolving this as your fix was submitted past gerrit.

        Show
        steve Steve Yen added a comment - Thanks Jens - resolving this as your fix was submitted past gerrit.
        steve Steve Yen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        verified with build 1941

        Show
        farshid Farshid Ghods (Inactive) added a comment - verified with build 1941
        farshid Farshid Ghods (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            jens Jens Alfke
            Reporter:
            don Don Pinto
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes