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

Issue 1923943003: Add logging to remote commands (Closed)

Created:
4 years, 7 months ago by Marton Hunyady
Modified:
4 years, 6 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add logging to remote commands BUG=602572 Committed: https://crrev.com/481a291fd77a809b5f5844192d674709679c776d Cr-Commit-Position: refs/heads/master@{#397998}

Patch Set 1 #

Patch Set 2 : Log upload results for screenshots #

Patch Set 3 : Add event type and upload job type #

Patch Set 4 : Remove unused include #

Total comments: 16

Patch Set 5 : Simplify logging, log time infos #

Patch Set 6 : Undo adding braces #

Patch Set 7 : Rebase on master #

Patch Set 8 : Rebase on master #

Patch Set 9 : Log with CHROMEOS_SYSLOG #

Total comments: 5

Patch Set 10 : Wrap into ifdef #

Patch Set 11 : Noop on non-chromeos builds #

Total comments: 4

Patch Set 12 : Syslog logging in upload_job_impl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -37 lines) Patch
A base/chromeos/logging.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.cc View 1 2 3 4 5 6 7 8 6 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/status_uploader.cc View 1 2 3 4 5 6 7 8 5 chunks +35 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/policy/system_log_uploader.cc View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/upload_job_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +13 lines, -12 lines 0 comments Download
M components/policy/core/common/remote_commands/remote_command_job.cc View 1 2 3 4 5 6 7 8 4 chunks +27 lines, -4 lines 0 comments Download
M components/policy/core/common/remote_commands/remote_commands_service.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -2 lines 0 comments Download
M ui/base/user_activity/user_activity_detector.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/base/user_activity/user_activity_detector.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
Marton Hunyady
atwilson: PTAL thakis: PTAL at user_activity_detector.*
4 years, 7 months ago (2016-05-04 13:47:32 UTC) #3
Marton Hunyady
atwilson: PTAL thakis: PTAL at user_activity_detector.*
4 years, 7 months ago (2016-05-04 13:47:32 UTC) #4
Andrew T Wilson (Slow)
https://codereview.chromium.org/1923943003/diff/60001/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc File chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc (right): https://codereview.chromium.org/1923943003/diff/60001/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc#newcode68 chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc:68: LOG(WARNING) << "Reboot command already has been executed."; Change ...
4 years, 7 months ago (2016-05-04 14:43:23 UTC) #5
Marton Hunyady
https://codereview.chromium.org/1923943003/diff/60001/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc File chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc (right): https://codereview.chromium.org/1923943003/diff/60001/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc#newcode68 chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc:68: LOG(WARNING) << "Reboot command already has been executed."; On ...
4 years, 7 months ago (2016-05-09 13:48:15 UTC) #6
Marton Hunyady
https://codereview.chromium.org/1923943003/diff/60001/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc File chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc (right): https://codereview.chromium.org/1923943003/diff/60001/chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc#newcode68 chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc:68: LOG(WARNING) << "Reboot command already has been executed."; On ...
4 years, 7 months ago (2016-05-09 13:48:16 UTC) #7
Andrew T Wilson (Slow)
lgtm
4 years, 7 months ago (2016-05-10 17:49:50 UTC) #8
Nico
I don't understand the motivation behind this CL. In general, we _don't_ want client side ...
4 years, 7 months ago (2016-05-13 14:33:00 UTC) #9
Marton Hunyady
On 2016/05/13 14:33:00, Nico wrote: > I don't understand the motivation behind this CL. In ...
4 years, 7 months ago (2016-05-13 15:10:45 UTC) #10
Andrew T Wilson (Slow)
On 2016/05/13 15:10:45, Marton wrote: > On 2016/05/13 14:33:00, Nico wrote: > > I don't ...
4 years, 7 months ago (2016-05-18 12:00:49 UTC) #11
Nico
If you're adding this to debug something, please add a TODO to remove them once ...
4 years, 7 months ago (2016-05-18 20:15:45 UTC) #12
Nico
See also https://www.chromium.org/developers/coding-style#TOC-Logging
4 years, 7 months ago (2016-05-18 20:16:28 UTC) #13
Andrew T Wilson (Slow)
On 2016/05/18 20:16:28, Nico (vacation May 19 to 22) wrote: > See also https://www.chromium.org/developers/coding-style#TOC-Logging None ...
4 years, 7 months ago (2016-05-19 13:48:03 UTC) #14
Nico
On 2016/05/19 13:48:03, Andrew T Wilson (Slow) wrote: > On 2016/05/18 20:16:28, Nico (vacation May ...
4 years, 7 months ago (2016-05-25 13:24:12 UTC) #15
Andrew T Wilson (Slow)
https://codereview.chromium.org/1923943003/diff/150001/base/chromeos/logging.h File base/chromeos/logging.h (right): https://codereview.chromium.org/1923943003/diff/150001/base/chromeos/logging.h#newcode13 base/chromeos/logging.h:13: // in the system log of the device. Should ...
4 years, 6 months ago (2016-06-03 15:39:12 UTC) #16
Nico
Thanks, this lgtm, but a question / suggestion: https://codereview.chromium.org/1923943003/diff/150001/base/chromeos/logging.h File base/chromeos/logging.h (right): https://codereview.chromium.org/1923943003/diff/150001/base/chromeos/logging.h#newcode1 base/chromeos/logging.h:1: // ...
4 years, 6 months ago (2016-06-04 01:25:00 UTC) #17
Marton Hunyady
https://codereview.chromium.org/1923943003/diff/150001/base/chromeos/logging.h File base/chromeos/logging.h (right): https://codereview.chromium.org/1923943003/diff/150001/base/chromeos/logging.h#newcode1 base/chromeos/logging.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
4 years, 6 months ago (2016-06-06 08:28:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1923943003/210001
4 years, 6 months ago (2016-06-06 09:18:06 UTC) #21
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 6 months ago (2016-06-06 09:32:44 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 09:34:36 UTC) #24
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/481a291fd77a809b5f5844192d674709679c776d
Cr-Commit-Position: refs/heads/master@{#397998}

Powered by Google App Engine
This is Rietveld 408576698