cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chrome / browser / resources / cryptotoken / logging.js
blob07462f8cd4d7369b2f11b5ca9a0efc28a434bb0c
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /**
6 * @fileoverview Logging related utility functions.
7 */
9 /** Posts the log message to the log url.
10 * @param {string} logMsg the log message to post.
11 * @param {string=} opt_logMsgUrl the url to post log messages to.
13 function logMessage(logMsg, opt_logMsgUrl) {
14 console.log(UTIL_fmt('logMessage("' + logMsg + '")'));
16 if (!opt_logMsgUrl) {
17 return;
20 var audio = new Audio();
21 audio.src = opt_logMsgUrl + logMsg;