aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-stp-latest
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-11-13 15:26:45 +0100
committerlaforge <laforge@osmocom.org>2019-11-19 18:29:00 +0000
commita9877bf4871533e55633ab2de03e308c46eba60a (patch)
tree20b332dc0a6e0e117e4b83a40f16c7e31326afbf /osmo-stp-latest
parentf19670453d79ccc40ab62449fb6f6427f8bf41f3 (diff)
Update osmo-*/Dockerfile to log stdout+stderr of process to log file
This way we get VTY parsing failures as well as backtraces upon process crash. Related: OS#4212 Change-Id: I9493ff73ef27c7c6d32b00cf827704b3f9cbf86a
Diffstat (limited to 'osmo-stp-latest')
-rw-r--r--osmo-stp-latest/Dockerfile2
-rw-r--r--osmo-stp-latest/osmo-stp.cfg23
2 files changed, 1 insertions, 24 deletions
diff --git a/osmo-stp-latest/Dockerfile b/osmo-stp-latest/Dockerfile
index 053e2ab..72872a1 100644
--- a/osmo-stp-latest/Dockerfile
+++ b/osmo-stp-latest/Dockerfile
@@ -26,6 +26,6 @@ WORKDIR /tmp
VOLUME /data
COPY osmo-stp.cfg /data/
-CMD ["/usr/bin/osmo-stp", "-c", "/data/osmo-stp.cfg"]
+CMD ["/bin/sh", "-c", "/usr/bin/osmo-stp -c /data/osmo-stp.cfg >/data/osmo-stp.log 2>&1"]
EXPOSE 2905 14001 4239
diff --git a/osmo-stp-latest/osmo-stp.cfg b/osmo-stp-latest/osmo-stp.cfg
index ada8378..e06a9e0 100644
--- a/osmo-stp-latest/osmo-stp.cfg
+++ b/osmo-stp-latest/osmo-stp.cfg
@@ -2,32 +2,9 @@
! osmo-stp (0.0.6.3.179-b248) configuration saved from vty
!!
!
-log stderr
logging filter all 1
logging color 1
logging print category 1
- logging timestamp 0
- logging level all everything
- logging level lglobal notice
- logging level llapd notice
- logging level linp debug
- logging level lmux notice
- logging level lmi notice
- logging level lmib notice
- logging level lsms notice
- logging level lctrl notice
- logging level lgtp notice
- logging level lstats notice
- logging level lgsup notice
- logging level loap notice
- logging level lss7 debug
- logging level lsccp debug
- logging level lsua debug
- logging level lm3ua debug
-log file /data/osmo-stp.log
- logging filter all 1
- logging color 0
- logging print category 1
logging timestamp 1
logging level all everything
logging level lglobal notice