Browse Source

+ error log

Yuriy Zhilovets 7 years ago
parent
commit
cccc27856e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      telegram.pl

+ 3 - 3
telegram.pl

@@ -121,7 +121,7 @@ sub incoming_message
 
 
   if ($@)
   if ($@)
   {
   {
-    $log->error($@);
+    $log->error(Dumper $@);
     $rabbit->reject($m);
     $rabbit->reject($m);
   }
   }
   else
   else
@@ -215,7 +215,7 @@ sub terminate
     exit(0);
     exit(0);
   })->catch(sub
   })->catch(sub
   {
   {
-    $log->error(@_);
+    $log->error(Dumper @_);
   });
   });
 }
 }
 
 
@@ -266,7 +266,7 @@ sub notify
   
   
   return request("sendMessage", $params)->catch(sub
   return request("sendMessage", $params)->catch(sub
   {
   {
-    $log->error(@_);
+    $log->error(Dumper @_);
   });
   });
 }
 }