Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1166)

Issue 2940493002: SingleLogSource handles rotation of log files (Closed)

Created:
3 years, 6 months ago by Simon Que
Modified:
3 years, 6 months ago
Reviewers:
afakhry
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org, rkc
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

SingleLogSource handles rotation of log files By observing underlying file inode values, SingleLogSource can tell when a log file has been rotated (renamed and then replaced). When this state is detected, SingleLogSource will read the remainder of the old log file and then start reading from the new log file. BUG=731906 TEST=unit tests pass Review-Url: https://codereview.chromium.org/2940493002 Cr-Commit-Position: refs/heads/master@{#479194} Committed: https://chromium.googlesource.com/chromium/src/+/bc3c128e15e218688cd067a17e5966fce4364ec1

Patch Set 1 #

Total comments: 7

Patch Set 2 : Use constexpr; Rename bool; Simplify logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -7 lines) Patch
M chrome/browser/chromeos/system_logs/single_log_source.h View 3 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/chromeos/system_logs/single_log_source.cc View 1 6 chunks +40 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/system_logs/single_log_source_unittest.cc View 2 chunks +51 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (9 generated)
Simon Que
3 years, 6 months ago (2017-06-12 21:55:12 UTC) #2
afakhry
lgtm with nits. https://codereview.chromium.org/2940493002/diff/1/chrome/browser/chromeos/system_logs/single_log_source.cc File chrome/browser/chromeos/system_logs/single_log_source.cc (right): https://codereview.chromium.org/2940493002/diff/1/chrome/browser/chromeos/system_logs/single_log_source.cc#newcode17 chrome/browser/chromeos/system_logs/single_log_source.cc:17: const int kMaxNumAllowedLogRotationsDuringFileRead = 3; Nit: ...
3 years, 6 months ago (2017-06-13 17:39:21 UTC) #3
Simon Que
https://codereview.chromium.org/2940493002/diff/1/chrome/browser/chromeos/system_logs/single_log_source.cc File chrome/browser/chromeos/system_logs/single_log_source.cc (right): https://codereview.chromium.org/2940493002/diff/1/chrome/browser/chromeos/system_logs/single_log_source.cc#newcode17 chrome/browser/chromeos/system_logs/single_log_source.cc:17: const int kMaxNumAllowedLogRotationsDuringFileRead = 3; On 2017/06/13 17:39:21, afakhry ...
3 years, 6 months ago (2017-06-13 20:54:56 UTC) #4
Simon Que
https://codereview.chromium.org/2940493002/diff/1/chrome/browser/chromeos/system_logs/single_log_source.cc File chrome/browser/chromeos/system_logs/single_log_source.cc (right): https://codereview.chromium.org/2940493002/diff/1/chrome/browser/chromeos/system_logs/single_log_source.cc#newcode17 chrome/browser/chromeos/system_logs/single_log_source.cc:17: const int kMaxNumAllowedLogRotationsDuringFileRead = 3; On 2017/06/13 17:39:21, afakhry ...
3 years, 6 months ago (2017-06-13 20:54:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2940493002/20001
3 years, 6 months ago (2017-06-13 23:00:53 UTC) #12
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 23:07:44 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/bc3c128e15e218688cd067a17e59...

Powered by Google App Engine
This is Rietveld 408576698