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

memcached logs always use Z (UTC) for timezone when logging

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.0.0
    • 5.5.0, 5.5.1, 5.5.2, 6.0.0
    • memcached
    • None
    • Untriaged
    • Unknown

    Description

      It looks like some recent changes in the memcached logging has caused the timezone in the memcached logs to be always printed with Z, referring to UTC, even when the timezone of the system (and other logs) is different.

      Looks like the "Z" is hard coded here https://github.com/couchbase/kv_engine/blob/master/logger/spdlogger.cc#L44

      Note the time is not actually converted to UTC, it is still using the system's local timezone. This is misleading as the reader may (quite reasonably) think the log message refers to UTC and hence struggle to correlate log messages.

      Attachments

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

        Activity

          People

            drigby Dave Rigby (Inactive)
            david.saadeh David Saadeh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty