geoip-attack-map icon indicating copy to clipboard operation
geoip-attack-map copied to clipboard

toLowerCase() in index.html

Open diegodblr opened this issue 8 years ago • 5 comments

Has happened to give error in the application when the amount of logs is very great and very fast. I have checked that the java script toLowerCase () function used to put flag images is to blame. I have adopted a simple solution here:

// var path = 'flags /' + args [i] .toLowerCase () + '.png'; Var path = 'flags /' + args [i] + '.png';

I removed toLowerCase () and used a shell script function to rename by capitalizing the acronyms of countries in the flags directory. Resolved for me.

diegodblr avatar Feb 09 '17 14:02 diegodblr

Thanks for looking into this Diego! I'll commit the changes tonight.

MatthewClarkMay avatar Feb 09 '17 18:02 MatthewClarkMay

hello

for file in *; do mv -- "$file" "${file^^}" ; done for f in *.PNG; do mv -- "$f" "${f%.PNG}.png"; done

But if you have a very large log it s crash again

amassi-network avatar Feb 10 '17 07:02 amassi-network

With me there is no crash, but the application needs adjustments to work for more than 24 hours and when there is logging through logrotate. I still need to kill the DataServer.py application, start a new instance of DataServer.py and do a reload in the browser.

diegodblr avatar Feb 12 '17 16:02 diegodblr

Effectively logrotate make a crash of Data Server.py. I plan to debug this problem. I think you have to catch the exeception and wait for the generation of new lines in DataServer.py

amassi-network avatar Feb 13 '17 06:02 amassi-network

I've never used Logrotate with this project myself. Tonight I will try reproducing the exception, and work on debugging it.

MatthewClarkMay avatar Feb 13 '17 13:02 MatthewClarkMay