diff mbox

layer23/cell_log: Set default logfile to /dev/null

Message ID 1454164582-10485-1-git-send-email-axilirator@gmail.com
State New
Headers show

Commit Message

Vadim Yanitskiy Jan. 30, 2016, 2:36 p.m. UTC
When '/var/log/osmocom.log' does not exist the cell_log
app can not start normally because it has no permissions
to create a new file. Furthermore, logfile is optional now.
---
 src/host/layer23/src/misc/app_cell_log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/host/layer23/src/misc/app_cell_log.c b/src/host/layer23/src/misc/app_cell_log.c
index a7f42c3..5b7f7b4 100644
--- a/src/host/layer23/src/misc/app_cell_log.c
+++ b/src/host/layer23/src/misc/app_cell_log.c
@@ -43,7 +43,7 @@  extern void *l23_ctx;
 extern uint16_t basic_band_range[][2];
 extern uint16_t (*band_range)[][2];
 
-char *logname = "/var/log/osmocom.log";
+char *logname = "/dev/null";
 int RACH_MAX = 2;
 
 int _scan_work(struct osmocom_ms *ms)