aboutsummaryrefslogtreecommitdiff
path: root/tgsend
diff options
context:
space:
mode:
authorGuillermo Ramos2019-06-25 14:45:23 +0200
committerGuillermo Ramos2019-06-25 14:50:41 +0200
commit5cd9d90a7fa86dc42b38d900b3ab4482f1f8ad59 (patch)
tree7ecc59d36cc43d669683ccf4900552eb96a1b2ae /tgsend
parentd6f2506d29d78397944085e402421d01436d2a0a (diff)
downloadtgutils-5cd9d90a7fa86dc42b38d900b3ab4482f1f8ad59.tar.gz
Improve log messages
Diffstat (limited to 'tgsend')
-rwxr-xr-xtgsend2
1 files changed, 1 insertions, 1 deletions
diff --git a/tgsend b/tgsend
index db6f412..9a77feb 100755
--- a/tgsend
+++ b/tgsend
@@ -44,7 +44,7 @@ my $text = <STDIN>;
# Send message to chats (or pretend to)
if ($PRETEND) {
- $logger->info("(prentend) Sending to $_:\n====\n$text\n====\n") foreach @ARGV;
+ $logger->info("(prentend) Sending to $_: '$text'\n") foreach @ARGV;
} else {
my $api = TgLib::Api->new($TOKEN, $logger);
$api->send_message($_, $text) foreach @ARGV;