From 6702b5681314400cc59c516f4aa7b1d1bb27bba4 Mon Sep 17 00:00:00 2001 From: "Ladue, David (dl3158)" Date: Thu, 29 Mar 2018 15:00:54 -0400 Subject: more pytest coverage Change-Id: I665b032f4789ff7a3089d727f36c8e8500963497 Issue-ID: DCAEGEN2-271 Signed-off-by: Ladue, David (dl3158) --- snmptrap/snmptrapd.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'snmptrap/snmptrapd.sh') diff --git a/snmptrap/snmptrapd.sh b/snmptrap/snmptrapd.sh index c4712f6..e8ef93e 100644 --- a/snmptrap/snmptrapd.sh +++ b/snmptrap/snmptrapd.sh @@ -21,7 +21,6 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # - # get to where we are supposed to be for startup cd /opt/app/snmptrap/bin @@ -37,8 +36,6 @@ export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt # PYTHONUNBUFFERED: # set PYTHONUNBUFFERED to a non-empty string to avoid output buffering; # comment out for runtime environments/better performance! -# FIXME: This does *NOT* appear to work as desired, so -# we've added "-u" to command line below # export PYTHONUNBUFFERED="True" # set location of config broker server overrride IF NEEDED @@ -47,8 +44,12 @@ export CBS_SIM_JSON=../etc/snmptrapd.json # want tracing? Use this: # python -m trace --trackcalls snmptrapd.py -v + # want verbose logging? Use this: -# python -u snmptrapd.py -v +# python snmptrapd.py -v + # standard startup? Use this: # python snmptrapd.py + +# unbuffered io for logs and verbose logging? Use this: python -u snmptrapd.py -v -- cgit 1.2.3-korg