diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llerror.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linden/indra/llcommon/llerror.cpp b/linden/indra/llcommon/llerror.cpp index 57e098e..9bcb415 100644 --- a/linden/indra/llcommon/llerror.cpp +++ b/linden/indra/llcommon/llerror.cpp | |||
@@ -5,6 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Copyright (c) 2006-2007, Linden Research, Inc. | 6 | * Copyright (c) 2006-2007, Linden Research, Inc. |
7 | * | 7 | * |
8 | * Second Life Viewer Source Code | ||
8 | * The source code in this file ("Source Code") is provided by Linden Lab | 9 | * The source code in this file ("Source Code") is provided by Linden Lab |
9 | * to you under the terms of the GNU General Public License, version 2.0 | 10 | * to you under the terms of the GNU General Public License, version 2.0 |
10 | * ("GPL"), unless you have obtained a separate licensing agreement | 11 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -514,7 +515,11 @@ namespace LLError | |||
514 | { | 515 | { |
515 | void initForServer(const std::string& identity) | 516 | void initForServer(const std::string& identity) |
516 | { | 517 | { |
517 | std::string dir = LLApp::instance()->getOption("configdir"); | 518 | std::string dir = "/opt/linden/etc"; |
519 | if (LLApp::instance()) | ||
520 | { | ||
521 | dir = LLApp::instance()->getOption("configdir").asString(); | ||
522 | } | ||
518 | commonInit(dir); | 523 | commonInit(dir); |
519 | #if !LL_WINDOWS | 524 | #if !LL_WINDOWS |
520 | addRecorder(new RecordToSyslog(identity)); | 525 | addRecorder(new RecordToSyslog(identity)); |