minor changes for log
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -47,8 +47,8 @@ class SmsController extends Controller | ... | @@ -47,8 +47,8 @@ class SmsController extends Controller |
| 47 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | 47 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
| 48 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 48 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 49 | $response = curl_exec($ch); | 49 | $response = curl_exec($ch); |
| 50 | Log::useFiles(storage_path().'/logs/SMS_Messages.log'); | 50 | Log::useFiles(storage_path().'/logs/SMS_Messages'.date("Y-m-d").'.log'); |
| 51 | Log::info("|".date('Y-m-d H:i:s', strtotime('+5 hours 30 minutes'))."|".$kstychCall['callnumber']."|".$msgText."|".$response); | 51 | Log::info("|".date('Y-m-d H:i:s', strtotime('+5 hours 30 minutes'))."|".Auth::user()->fullname."|".$kstychCall['callnumber']."|".$msgText."|".$response); |
| 52 | //Log::info($response); | 52 | //Log::info($response); |
| 53 | curl_close($ch); | 53 | curl_close($ch); |
| 54 | } catch(Exception $e) { | 54 | } catch(Exception $e) { | ... | ... |
-
Please register or sign in to post a comment