Skip to content

Commit

Permalink
Remove echo log to /tmp/{$SERVICE}-debug.log in service_mgmt.sh (soni…
Browse files Browse the repository at this point in the history
…c-net#17838)

### Why I did it

Unnecessary for logs to be written out to /tmp/${SERVICE}-debug.log as they are already being written to syslog. Therefore, removing writing to a new log in concern for memory space and not being able to startup some services in RO state.

##### Work item tracking
- Microsoft ADO **(number only)**:26458976

#### How I did it

Remove DEBUGLOG definition and line that echo's message to mentioned log file.

#### How to verify it

Manually verified, /tmp/${SERVICE}-debug.log files do not exist and log for service starting still appears in syslog
  • Loading branch information
zbud-msft authored Jan 26, 2024
1 parent fb2c3cd commit b557488
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions files/scripts/service_mgmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
function debug()
{
/usr/bin/logger $1
/bin/echo `date` "- $1" >> ${DEBUGLOG}
}

function check_warm_boot()
Expand Down Expand Up @@ -87,7 +86,6 @@ DEV=$2

SCRIPT_NAME=$(basename -- "$0")
SERVICE="${SCRIPT_NAME%.*}"
DEBUGLOG="/tmp/$SERVICE-debug$DEV.log"
NAMESPACE_PREFIX="asic"
if [ "$DEV" ]; then
NET_NS="$NAMESPACE_PREFIX$DEV" #name of the network namespace
Expand Down

0 comments on commit b557488

Please sign in to comment.