Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log sdget #147

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sdt/bin/sdget.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import sdconst
import sdget_urllib
from sdtools import print_stderr
import sdlog

def download(url,full_local_path,debug=False,http_client=sdconfig.http_client,timeout=sdconst.ASYNC_DOWNLOAD_HTTP_TIMEOUT,verbosity=0,buffered=True,hpss=False):
killed=False
Expand Down Expand Up @@ -201,6 +202,7 @@ def prepare_args(url,full_local_path,script,debug,timeout,verbosity,hpss):
li.insert(1,'-p')
li.insert(2,'0')

sdlog.debug('SDGET000-010',"sdget command %s"%li)
return li

# init.
Expand Down
3 changes: 3 additions & 0 deletions sdt/bin/sdget.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ else
$NO_CHECK_SERVER_CERTIFICATE \
$url"
fi
echo WGET_CMD $WGET_CMD

wget_stderr2stdout ()
{
Expand Down Expand Up @@ -455,6 +456,8 @@ fi

if [ $parse_output -eq 1 ]; then
source "$wgetoutputparser" # we parse wget output to keep only HTTP response code from wget messages
elif [ $wget_status -ne 0 ]; then
log "DEB015" "$wget_errmsg"
fi


Expand Down