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

Issue 486873005: Update syslog parser for new ChromeOS log format (Closed)

Created:
6 years, 4 months ago by mukesh agrawal
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@histograms
Project:
chromium
Visibility:
Public.

Description

Update syslog parser for new ChromeOS log format In R39, ChromeOS rsyslogd no longer includes the hostname field. Update SyslogParser accordingly. While there: - Update example shill log message to include process ID. (ChromeOS syslog recently started recording process IDs whenever possible.) - Add a test log message from the kernel. This message does not include a process ID. - Fix parsing of messages that do not have a process ID. Previously, for such messages, the process name would include a trailing ':'. With this change, they no longer do. (The process name will now be 'kernel', instead of 'kernel:'.) - Simplify string EXPECTations. (No need for cstr() and STREQ.) BUG=403558 TEST=unit test (ExtensionSyslogParserTest.ParseLog) Committed: https://crrev.com/1a2f0e0889de76e03e14d454fef33711b4be3a3b Cr-Commit-Position: refs/heads/master@{#292058}

Patch Set 1 #

Total comments: 4

Patch Set 2 : correct commit message, and simplify tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -25 lines) Patch
M chrome/browser/extensions/api/log_private/syslog_parser.cc View 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/log_private/syslog_parser_unittest.cc View 1 2 chunks +30 lines, -16 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mukesh agrawal
6 years, 4 months ago (2014-08-19 18:25:35 UTC) #1
Zachary Kuznia
lgtm
6 years, 4 months ago (2014-08-19 20:13:28 UTC) #2
mukesh agrawal
The CQ bit was checked by quiche@chromium.org
6 years, 4 months ago (2014-08-19 21:26:06 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/quiche@chromium.org/486873005/1
6 years, 4 months ago (2014-08-19 21:26:51 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-19 22:13:16 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-19 22:16:53 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/5344)
6 years, 4 months ago (2014-08-19 22:16:54 UTC) #7
mukesh agrawal
jyasskin, can I trouble you for an OWNERS review?
6 years, 4 months ago (2014-08-20 00:01:57 UTC) #8
Jeffrey Yasskin
"ChromeOS syslogs will soon drop the hostname field." implies that the hostname field is still ...
6 years, 3 months ago (2014-08-26 18:44:27 UTC) #9
mukesh agrawal
thanks, and ptal https://codereview.chromium.org/486873005/diff/1/chrome/browser/extensions/api/log_private/syslog_parser.cc File chrome/browser/extensions/api/log_private/syslog_parser.cc (left): https://codereview.chromium.org/486873005/diff/1/chrome/browser/extensions/api/log_private/syslog_parser.cc#oldcode50 chrome/browser/extensions/api/log_private/syslog_parser.cc:50: // Skips "localhost" field. On 2014/08/26 ...
6 years, 3 months ago (2014-08-26 22:41:15 UTC) #10
Jeffrey Yasskin
lgtm
6 years, 3 months ago (2014-08-26 22:46:51 UTC) #11
mukesh agrawal
The CQ bit was checked by quiche@chromium.org
6 years, 3 months ago (2014-08-27 00:08:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/quiche@chromium.org/486873005/20001
6 years, 3 months ago (2014-08-27 00:11:46 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (20001) as de75a4ca607ec0a35cb28654afb0add3fe51ff58
6 years, 3 months ago (2014-08-27 01:08:26 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:48:22 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1a2f0e0889de76e03e14d454fef33711b4be3a3b
Cr-Commit-Position: refs/heads/master@{#292058}

Powered by Google App Engine
This is Rietveld 408576698