File: debian-log-directory.patch

package info (click to toggle)
cyphesis-cpp 0.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,752 kB
  • sloc: cpp: 94,194; xml: 40,196; python: 8,717; sh: 4,164; makefile: 1,968; ansic: 753
file content (17 lines) | stat: -rw-r--r-- 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Create log in appropriate location for Debian
 Log directory created/checked by daemon init file and removed by postrm file.
Forwarded: not-needed
Author: Olek Wojnar <olek-dev@wojnar.org>
Last-Update: 2018-02-03

--- a/common/log.cpp
+++ b/common/log.cpp
@@ -77,7 +77,7 @@
 
 static void open_event_log()
 {
-    std::string event_log_file = var_directory + "/tmp/cyphesis_event.log";
+    std::string event_log_file = var_directory + "/log/cyphesis/cyphesis_event.log";
 
     event_log.open(event_log_file.c_str(), std::ios::out | std::ios::app);