Skip to content

Commit

Permalink
don't show token to log.
Browse files Browse the repository at this point in the history
  • Loading branch information
walf443 committed Apr 21, 2011
1 parent b8efde9 commit 5840990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Carol/IRCGateway/Github.pm
Expand Up @@ -92,6 +92,7 @@ sub request_github {
AnyEvent::HTTP::http_request($method, $url, %args, sub {
my ($content, $meta) = @_;

$path =~ s/token=([^&]+)/token=****/g; # don't show pass to log.
if ( $meta->{Status} == 200 ) {
debugf("fetch data from $path");
my $feed;
Expand All @@ -107,7 +108,6 @@ sub request_github {
$cb->($feed, $meta);
}
} else {
$path =~ s/token=([^&]+)/token=****/g; # don't show pass to log.
warnf("got error @{[ $meta->{Status} ]} while fetching $path");
}
});
Expand Down

0 comments on commit 5840990

Please sign in to comment.