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

Issue 12213059: Direct host output to a specific log file. (Closed)

Created:
7 years, 10 months ago by Stephen
Modified:
7 years, 10 months ago
Reviewers:
Jamie
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Direct host output to a specific log file. As of 10.8 if you don't specify a standard output/error destination file then output from the host service is not logged at all. This change modifies our host service .plist to specify a specific chromoting log file, ensures this log file is properly created when we install the host, adds a configuration for the newsyslog process (which will turnover/archive the log file once it goes >1MB), and removes the log file and newsyslog configuration in the uninstaller. It also adds some timestamps to the host startup script so that we can better identify log events. It also alphabetizes the strings in the .plist file. TEST=Manual (modified files, created install package, ran and uninstalled) BUG=171026 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181605

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -6 lines) Patch
M remoting/host/constants_mac.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/host/constants_mac.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M remoting/host/installer/mac/ChromotingHostService.pkgproj View 1 1 chunk +50 lines, -0 lines 0 comments Download
A remoting/host/installer/mac/Config/org.chromium.chromoting.conf View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M remoting/host/installer/mac/LaunchAgents/org.chromium.chromoting.plist View 1 2 chunks +8 lines, -4 lines 0 comments Download
M remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh View 1 3 chunks +3 lines, -2 lines 0 comments Download
M remoting/host/installer/mac/Scripts/remoting_postflight.sh View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M remoting/host/installer/mac/uninstaller/remoting_uninstaller.mm View 1 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/remoting.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Stephen
PTAL, thanks!
7 years, 10 months ago (2013-02-07 01:04:36 UTC) #1
Jamie
https://codereview.chromium.org/12213059/diff/1/remoting/host/installer/mac/LaunchAgents/org.chromium.chromoting.plist File remoting/host/installer/mac/LaunchAgents/org.chromium.chromoting.plist (left): https://codereview.chromium.org/12213059/diff/1/remoting/host/installer/mac/LaunchAgents/org.chromium.chromoting.plist#oldcode15 remoting/host/installer/mac/LaunchAgents/org.chromium.chromoting.plist:15: <false/> Can you add something to the CL description ...
7 years, 10 months ago (2013-02-07 02:22:15 UTC) #2
Stephen
On 2013/02/07 02:22:15, Jamie wrote: >https://codereview.chromium.org/12213059/diff/1/remoting/host/installer/mac/LaunchAgents/org.chromium.chromoting.plist#oldcode15 > remoting/host/installer/mac/LaunchAgents/org.chromium.chromoting.plist:15: > <false/> > Can you add something ...
7 years, 10 months ago (2013-02-07 03:19:03 UTC) #3
Jamie
On 2013/02/07 03:19:03, Stephen wrote: > On 2013/02/07 02:22:15, Jamie wrote: > >https://codereview.chromium.org/12213059/diff/1/remoting/host/installer/mac/LaunchAgents/org.chromium.chromoting.plist#oldcode15 > > ...
7 years, 10 months ago (2013-02-07 18:52:46 UTC) #4
lambroslambrou+watch_chromium.org
Logging to a specific system-wide file isn't really a good approach. Even if we lock ...
7 years, 10 months ago (2013-02-07 19:23:50 UTC) #5
Stephen
On 2013/02/07 19:23:50, lambroslambrou+watch_chromium.org wrote: > Logging to a specific system-wide file isn't really a ...
7 years, 10 months ago (2013-02-07 19:41:07 UTC) #6
Stephen
Okay, please take another look. I was able to work out a way to have ...
7 years, 10 months ago (2013-02-08 22:55:56 UTC) #7
Jamie
https://codereview.chromium.org/12213059/diff/7001/remoting/host/installer/mac/Config/org.chromium.chromoting.conf File remoting/host/installer/mac/Config/org.chromium.chromoting.conf (right): https://codereview.chromium.org/12213059/diff/7001/remoting/host/installer/mac/Config/org.chromium.chromoting.conf#newcode1 remoting/host/installer/mac/Config/org.chromium.chromoting.conf:1: # logfilename [owner:group] mode count size when flags [/pid_file] ...
7 years, 10 months ago (2013-02-08 23:45:10 UTC) #8
Stephen
On 2013/02/08 23:45:10, Jamie wrote: > https://codereview.chromium.org/12213059/diff/7001/remoting/host/installer/mac/Config/org.chromium.chromoting.conf#newcode1 > remoting/host/installer/mac/Config/org.chromium.chromoting.conf:1: # logfilename > [owner:group] mode count ...
7 years, 10 months ago (2013-02-09 00:09:38 UTC) #9
Jamie
lgtm with nits. https://codereview.chromium.org/12213059/diff/8011/remoting/host/installer/mac/Config/org.chromium.chromoting.conf File remoting/host/installer/mac/Config/org.chromium.chromoting.conf (right): https://codereview.chromium.org/12213059/diff/8011/remoting/host/installer/mac/Config/org.chromium.chromoting.conf#newcode1 remoting/host/installer/mac/Config/org.chromium.chromoting.conf:1: # Copyright (c) 2013 The Chromium ...
7 years, 10 months ago (2013-02-09 00:21:32 UTC) #10
Stephen
On 2013/02/09 00:21:32, Jamie wrote: > lgtm with nits. > https://codereview.chromium.org/12213059/diff/8011/remoting/host/installer/mac/Config/org.chromium.chromoting.conf#newcode1 > remoting/host/installer/mac/Config/org.chromium.chromoting.conf:1: # Copyright ...
7 years, 10 months ago (2013-02-09 00:29:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skonig@chromium.org/12213059/9011
7 years, 10 months ago (2013-02-09 00:29:53 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=82804
7 years, 10 months ago (2013-02-09 03:16:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skonig@chromium.org/12213059/9011
7 years, 10 months ago (2013-02-09 03:19:49 UTC) #14
commit-bot: I haz the power
7 years, 10 months ago (2013-02-09 06:09:16 UTC) #15
Message was sent while issue was closed.
Change committed as 181605

Powered by Google App Engine
This is Rietveld 408576698