summaryrefslogtreecommitdiffstats
path: root/client/application.cpp
diff options
context:
space:
mode:
authorYaniv Kamay <ykamay@redhat.com>2010-01-11 19:39:54 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-11 19:39:54 +0200
commit3c1ff6448d847e6e96425fa166446b99bac5e592 (patch)
tree10049d55dc16f597058e2127e0270f85d9430d33 /client/application.cpp
parentad121810278c1e2851f74c370e1cb36e52367be3 (diff)
downloadspice-3c1ff6448d847e6e96425fa166446b99bac5e592.tar.gz
spice-3c1ff6448d847e6e96425fa166446b99bac5e592.tar.xz
spice-3c1ff6448d847e6e96425fa166446b99bac5e592.zip
client: fix logger init mix-up
Diffstat (limited to 'client/application.cpp')
-rw-r--r--client/application.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/application.cpp b/client/application.cpp
index a0e34360..839885d8 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -1971,12 +1971,12 @@ void Application::init_logger()
#ifdef RED_DEBUG
root.setPriority(log4cpp::Priority::DEBUG);
root.removeAllAppenders();
- ::close(fd);
- root.addAppender(new log4cpp::RollingFileAppender("_", log_file_name));
+ root.addAppender(new log4cpp::FileAppender("_", fd));
#else
root.setPriority(log4cpp::Priority::INFO);
root.removeAllAppenders();
- root.addAppender(new log4cpp::FileAppender("_", fd));
+ ::close(fd);
+ root.addAppender(new log4cpp::RollingFileAppender("_", log_file_name));
#endif
}