cc01c9f2 by G Manojkumar

minor changes for log

1 parent fc54e023
...@@ -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) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!