You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/03/04 17:07:54 UTC

[GitHub] [trafficcontrol] rawlinp opened a new issue #5604: Traffic Monitor truncates log file when restarted

rawlinp opened a new issue #5604:
URL: https://github.com/apache/trafficcontrol/issues/5604


   ## I'm submitting a ...
   -  bug report
   
   ## Traffic Control components affected ...
   -  Traffic Monitor
   
   ## Current behavior:
   TM truncates its log file upon startup:
   ```
   [root@foo log]# ll traffic_monitor.log
   -rw-r--r-- 1 root root 3107262 Mar  4 09:11 traffic_monitor.log
   [root@foo log]# systemctl stop traffic_monitor
   [root@foo log]# ll traffic_monitor.log
   -rw-r--r-- 1 root root 3107262 Mar  4 17:02 traffic_monitor.log
   [root@foo log]# systemctl start traffic_monitor
   [root@foo log]# ll traffic_monitor.log
   -rw-r--r-- 1 root root 704 Mar  4 17:02 traffic_monitor.log
   ```
   Observed on 5.0.0 with the following logging config in `traffic_monitor.cfg`:
   ```
           "log_location_event": "/opt/traffic_monitor/var/log/event.log",
           "log_location_error": "/opt/traffic_monitor/var/log/traffic_monitor.log",
           "log_location_warning": "/opt/traffic_monitor/var/log/traffic_monitor.log",
           "log_location_info": "null",
           "log_location_debug": "null",
   ```
   
   ## Expected behavior:
   Traffic Monitor should _not_ truncate its config upon startup. Instead, it should append to the existing log file.
   
   ## Minimal reproduction of the problem with instructions:
   Restart Traffic Monitor with the above configuration.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] rawlinp closed issue #5604: Traffic Monitor truncates log file when restarted

Posted by GitBox <gi...@apache.org>.
rawlinp closed issue #5604:
URL: https://github.com/apache/trafficcontrol/issues/5604


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org