Ignacio Gago 11 lat temu
rodzic
commit
5a65144084
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/warnings.sh

+ 1 - 1
tools/warnings.sh

@@ -11,7 +11,7 @@
 
 function show_warnings() {
     echo "${GREEN}Node `basename $1`:${NC}"
-    sed -n 's/^.*\[warn\]//p' $1/info.log | uniq -c | \
+    sed -n 's/^.*\[warn\]//p' $1/info.log | sort | uniq -c | \
     sed -e 's/^\s*//' -e "s/\([0-9][0-9]*\) \(.*\)/${YELLOW}Warning:${NC}\2${YELLOW} Number: \1${NC}/"
     echo ""
 }