IUNO-TDM / LicenseManager

The component at the juice mixing machine, responsible for importing and managing licenses
GNU General Public License v3.0
1 stars 2 forks source link

excessive logging if cm dongle is unavailable #5

Open bockha opened 6 years ago

bockha commented 6 years ago

Nachdem der Raspi ein paar Tage ohne Dongle und teilweise ohne LAN Verbindung aber mit Strom herumgestanden hat, sind die Logs vollgelaufen und haben das root Verzeichnis vollgemüllt. Das wär was, das Ihr noch abfangen könntet und die Loggröße beschränken. License Manager und MixerControl waren jeweils über 12 MB groß, mit folgenden Einträgen:

2018-03-19 06:45:54,205 DEBUG [default] [pi@unknown-host] [void WebInterface::OnHttp(websocketpp::connection_hdl)] [src/webinterface.cpp:61] WebInterface onHttp
2018-03-19 06:45:54,206 DEBUG [default] [pi@unknown-host] [void WebInterface::HandleHttpMessage(const string&, const string&, const string&, WebInterface::HttpResponse&)] [src/webinterface.cpp:79] HTTP Message: Method: GET; Path: /cmdongles; Body: ''.
2018-03-19 06:45:54,206 DEBUG [default] [pi@unknown-host] [void WebInterface::HandleGetDongles(WebInterface::HttpResponse&)] [src/webinterface.cpp:116] Getting dongles.
2018-03-19 06:45:54,206 DEBUG [default] [pi@unknown-host] [virtual void LicenseManager::GetDongles(std::vector<std::__cxx11::basic_string<char> >&)] [src/licensemanager.cpp:12] Getting dongles.
2018-03-19 06:45:54,210 ERROR [default] Getting dongles failed. Reason: 'CmContainer not found, Error 201.'.
2018-03-19 06:45:54,210 DEBUG [default] [pi@unknown-host] [void WebInterface::HandleGetDongles(WebInterface::HttpResponse&)] [src/webinterface.cpp:133] Getting dongles failed. Reason: 'Getting dongles failed. Reason: 'CmContainer not found, Error 201.'.'.
2018-03-19 06:45:54,210 DEBUG [default] [pi@unknown-host] [void WebInterface::HandleHttpMessage(const string&, const string&, const string&, WebInterface::HttpResponse&)] [src/webinterface.cpp:111] HTTP Message failed, code: 500; message: 'Getting dongles failed. Reason: 'CmContainer not found, Error 201.'.'.
[2018-03-19 06:45:54] [http] localhost:11432 [::ffff:127.0.0.1]:59844 "GET /cmdongles HTTP/1.1" 500 68 "" 
2018-03-19 06:46:14,208 DEBUG [default] [pi@unknown-host] [void WebInterface::OnHttp(websocketpp::connection_hdl)] [src/webinterface.cpp:61] WebInterface onHttp
2018-03-19 06:46:14,208 DEBUG [default] [pi@unknown-host] [void WebInterface::HandleHttpMessage(const string&, const string&, const string&, WebInterface::HttpResponse&)] [src/webinterface.cpp:79] HTTP Message: Method: GET; Path: /cmdongles; Body: ''.
2018-03-19 06:46:14,208 DEBUG [default] [pi@unknown-host] [void WebInterface::HandleGetDongles(WebInterface::HttpResponse&)] [src/webinterface.cpp:116] Getting dongles.
2018-03-19 06:46:14,208 DEBUG [default] [pi@unknown-host] [virtual void LicenseManager::GetDongles(std::vector<std::__cxx11::basic_string<char> >&)] [src/licensemanager.cpp:12] Getting dongles.
2018-03-19 06:46:14,214 ERROR [default] Getting dongles failed. Reason: 'CmContainer not found, Error 201.'.
2018-03-19 06:46:14,214 DEBUG [default] [pi@unknown-host] [void WebInterface::HandleGetDongles(WebInterface::HttpResponse&)] [src/webinterface.cpp:133] Getting dongles failed. Reason: 'Getting dongles failed. Reason: 'CmContainer not found, Error 201.'.'.
2018-03-19 06:46:14,215 DEBUG [default] [pi@unknown-host] [void WebInterface::HandleHttpMessage(const string&, const string&, const string&, WebInterface::HttpResponse&)] [src/webinterface.cpp:111] HTTP Message failed, code: 500; message: 'Getting dongles failed. Reason: 'CmContainer not found, Error 201.'.'.
[2018-03-19 06:46:14] [http] localhost:11432 [::ffff:127.0.0.1]:59858 "GET /cmdongles HTTP/1.1" 500 68 ""

see also IUNO-TDM/MixerControl#142

MBeuttler commented 6 years ago

pm2-logrotate@2.2.0 has a working logrotate. So exessive logigng should no longer be an issue.