From 2143fe4b59b6fa6c834602bf52339d9ad5aa100f Mon Sep 17 00:00:00 2001 From: Mo Langning <133737702+molangning@users.noreply.github.com> Date: Thu, 30 Nov 2023 00:15:30 +0800 Subject: [PATCH] improved logging --- .bin/get-and-patch-readme-repository-details.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bin/get-and-patch-readme-repository-details.py b/.bin/get-and-patch-readme-repository-details.py index 51876491..f5d525e6 100755 --- a/.bin/get-and-patch-readme-repository-details.py +++ b/.bin/get-and-patch-readme-repository-details.py @@ -20,6 +20,10 @@ Size of a complete clone of SecLists is currently at `%s` Cloning this repository should take %i-%i minutes at 5MB/s speeds. %s""" +ERROR_STRING="::error file=%s,line=%s,col=%s,endColumn=%s::%s" + +def print_err(file,msg,line=1,col=1,endcol=1): + print(ERROR_STRING%(file,line,col,endcol,msg)) size=requests.get(REPOSITORY_API%(REPOSITORY)).json()['size'] # Its in kb