Default to LS_INFO logging for release builds.
Increases default loglevel for test targets to LS_INFO, which is a no-op for debug builds but increases logging on release builds. This is to present better debug info on buildbots when test runs fail. BUG= R=henrikg@webrtc.org, kjellander@webrtc.org, stefan@webrtc.org Review URL: https://codereview.webrtc.org/1479183002 . Cr-Commit-Position: refs/heads/master@{#10826}
This commit is contained in:
@ -191,10 +191,10 @@ bool RunAppleScript(const std::string& script) {
|
||||
AECreateDesc(typeNull, NULL, 0, &result_data);
|
||||
OSAScriptError(component, kOSAErrorMessage, typeChar, &result_data);
|
||||
int len = AEGetDescDataSize(&result_data);
|
||||
char* data = (char*) malloc(len);
|
||||
char* data = (char*)malloc(len);
|
||||
if (data != NULL) {
|
||||
err = AEGetDescData(&result_data, data, len);
|
||||
LOG(LS_ERROR) << "Script error: " << data;
|
||||
LOG(LS_ERROR) << "Script error: " << std::string(data, len);
|
||||
}
|
||||
AEDisposeDesc(&script_desc);
|
||||
AEDisposeDesc(&result_data);
|
||||
|
||||
Reference in New Issue
Block a user