Skip to content

Commit

Permalink
removed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Manash Jyoti Sonowal committed Jul 17, 2017
1 parent 2044cdb commit afd96af
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .idea/laraxchange.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

228 changes: 228 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Middleware/SetDefaultUserCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ public function handle($request, Closure $next)
//$location = geoip()->getLocation(); //Commented cause it was giving inconsistent results
$location = geoip($request->ip());
$currency = $location->currency;
Log::debug('Detected Location ', $location->toArray());
//Log::debug('Detected Location ', $location->toArray());
} catch (\Exception $ex) {
Log::debug('Exception caught '. $ex->getMessage());
}
if (is_null($currency) || $currency=='') {
$currency = config('currency.default_currency');
}
Log::debug('Setting Currency if not Set previously :'. $currency);
//Log::debug('Setting Currency if not Set previously :'. $currency);
setDefaultCurrencyIfNotSet($currency);
Log::debug('Loading currency of Session IP :'.$request->ip(). ' Currency: '. $currency);
//Log::debug('Loading currency of Session IP :'.$request->ip(). ' Currency: '. $currency);
return $next($request);
}
}

0 comments on commit afd96af

Please sign in to comment.