aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-mgw-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-mgw-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-mgw-latest')
-rw-r--r--osmo-mgw-latest/Dockerfile2
-rw-r--r--osmo-mgw-latest/osmo-mgw.cfg2
2 files changed, 2 insertions, 2 deletions
diff --git a/osmo-mgw-latest/Dockerfile b/osmo-mgw-latest/Dockerfile
index e0afb1c..9a403f8 100644
--- a/osmo-mgw-latest/Dockerfile
+++ b/osmo-mgw-latest/Dockerfile
@@ -28,4 +28,4 @@ VOLUME /data
COPY osmo-mgw.cfg /data/osmo-mgw.cfg
WORKDIR /data
-CMD ["/usr/bin/osmo-mgw"]
+CMD ["/bin/sh", "-c", "/usr/bin/osmo-mgw -c /data/osmo-mgw.cfg >/data/osmo-mgw.log 2>&1"]
diff --git a/osmo-mgw-latest/osmo-mgw.cfg b/osmo-mgw-latest/osmo-mgw.cfg
index 44653e3..23d5603 100644
--- a/osmo-mgw-latest/osmo-mgw.cfg
+++ b/osmo-mgw-latest/osmo-mgw.cfg
@@ -6,7 +6,7 @@ log stderr
logging filter all 1
logging color 1
logging print category 1
- logging timestamp 0
+ logging timestamp 1
logging level all everything
logging level rtp notice
logging level lglobal notice