diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-03 00:30:08 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-03 00:30:08 +0000 |
commit | 064aa1618863d6d4d015b0b862b37483d26dbe9f (patch) | |
tree | 0bd2866009cf5bc820c10f248709ff1e0392ddf6 /base/logging.h | |
parent | 3d73bce15bd0465842fa79a3e6c5c66219a8d38d (diff) | |
download | chromium_src-064aa1618863d6d4d015b0b862b37483d26dbe9f.zip chromium_src-064aa1618863d6d4d015b0b862b37483d26dbe9f.tar.gz chromium_src-064aa1618863d6d4d015b0b862b37483d26dbe9f.tar.bz2 |
Don't delete g_vlog_info
Fixes a race on startup. See issue for details.
BUG=chromium-os:20865
TEST=Ensure logging, including VLOG, works.
TBR=willchen@chromium.org
Review URL: http://codereview.chromium.org/8757002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/logging.h')
-rw-r--r-- | base/logging.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/logging.h b/base/logging.h index ae67eac..94a82ad 100644 --- a/base/logging.h +++ b/base/logging.h @@ -210,6 +210,10 @@ BASE_EXPORT bool BaseInitLoggingImpl(const PathChar* log_file, // The default log file is initialized to "debug.log" in the application // directory. You probably don't want this, especially since the program // directory may not be writable on an enduser's system. +// +// This function may be called a second time to re-direct logging (e.g after +// loging in to a user partition), however it should never be called more than +// twice. inline bool InitLogging(const PathChar* log_file, LoggingDestination logging_dest, LogLockingState lock_log, |