0

Update logging

Fixes #23
This commit is contained in:
Kaimi
2020-09-13 14:58:16 +03:00
committed by GitHub
parent 4893ca8a1a
commit cd726c1246

View File

@@ -307,8 +307,7 @@ my @include = ();
if($opt{debug}) if($opt{debug})
{ {
info(DEBUG, 'Yandex Music Downloader v' . VERSION . NL . NL); print_debug_info();
print_perl_info();
} }
if($opt{proxy}) 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, 'OS: ' . $^O . '; Path: ' . $^X . '; Version: ' . $^V);
info(DEBUG, 'Cookie: ' . $opt{cookie}) if $opt{cookie};
info(DEBUG, 'Auth: ' . $opt{auth}) if $opt{auth};
} }