diff options
author | Kaimi <kaimi-@users.noreply.github.com> | 2020-09-13 14:58:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 14:58:16 +0300 |
commit | cd726c12465ff7b31d6006b8c604bd386137d57a (patch) | |
tree | be5f223a7adf959be4d902081d95025214d3f763 | |
parent | 4893ca8a1ac49c07099bbf3d6e211127ce83f081 (diff) |
Update logging
Fixes #23
-rwxr-xr-x | src/ya.pl | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -307,8 +307,7 @@ my @include = (); if($opt{debug}) { - info(DEBUG, 'Yandex Music Downloader v' . VERSION . NL . NL); - print_perl_info(); + print_debug_info(); } if($opt{proxy}) @@ -1220,7 +1219,11 @@ sub log_response } } -sub print_perl_info +sub print_debug_info { + info(DEBUG, 'Yandex Music Downloader v' . VERSION . NL . NL); info(DEBUG, 'OS: ' . $^O . '; Path: ' . $^X . '; Version: ' . $^V); + + info(DEBUG, 'Cookie: ' . $opt{cookie}) if $opt{cookie}; + info(DEBUG, 'Auth: ' . $opt{auth}) if $opt{auth}; } |