mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Update debug information.
This commit is contained in:
@@ -55,4 +55,6 @@ PUSHER_ID=
|
||||
|
||||
DEMO_USERNAME=
|
||||
DEMO_PASSWORD=
|
||||
|
||||
IS_DOCKER=true
|
||||
IS_SANDSTORM=false
|
||||
|
@@ -55,4 +55,6 @@ PUSHER_ID=
|
||||
|
||||
DEMO_USERNAME=
|
||||
DEMO_PASSWORD=
|
||||
|
||||
IS_DOCKER=false
|
||||
IS_SANDSTORM=false
|
||||
|
@@ -55,4 +55,6 @@ PUSHER_ID=
|
||||
|
||||
DEMO_USERNAME=
|
||||
DEMO_PASSWORD=
|
||||
|
||||
IS_DOCKER=false
|
||||
IS_SANDSTORM=true
|
||||
|
@@ -56,3 +56,5 @@ PUSHER_ID=
|
||||
DEMO_USERNAME=
|
||||
DEMO_PASSWORD=
|
||||
|
||||
IS_DOCKER=false
|
||||
IS_SANDSTORM=false
|
||||
|
@@ -102,6 +102,9 @@ class HomeController extends Controller
|
||||
$drivers = join(', ', DB::availableDrivers());
|
||||
$currentDriver = DB::getDriverName();
|
||||
$userAgent = $request->header('user-agent');
|
||||
$isSandstorm = var_export(env('IS_SANDSTORM', 'unknown'), true);
|
||||
$isDocker = var_export(env('IS_DOCKER', 'unknown'), true);
|
||||
$trustedProxies = env('TRUSTED_PROXIES', '(none)');
|
||||
|
||||
// get latest log file:
|
||||
$logger = Log::getMonolog();
|
||||
@@ -118,7 +121,11 @@ class HomeController extends Controller
|
||||
// last few lines
|
||||
$logContent = 'Truncated from this point <----|' . substr($logContent, -4096);
|
||||
|
||||
return view('debug', compact('phpVersion', 'extensions', 'carbon', 'now', 'drivers', 'currentDriver', 'userAgent', 'phpOs', 'interface', 'logContent'));
|
||||
return view(
|
||||
'debug', compact(
|
||||
'phpVersion', 'extensions', 'carbon', 'now', 'drivers', 'currentDriver', 'userAgent', 'phpOs', 'interface', 'logContent', 'isDocker', 'isSandstorm','trustedProxies'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,11 @@ Debug information generated at {{ now }} for Firefly III version **{{ FF_VERSION
|
||||
| Current driver | {{ currentDriver }} |
|
||||
| Using Sandstorm? | {% if SANDSTORM == true %}yes{% else %}no{% endif %} |
|
||||
{% if SANDSTORM == true %}| Sandstorm anon? | {% if SANDSTORM_ANON == true %}yes{% else %}no{% endif %} |{% endif %}
|
||||
| Is Sandstorm (.env) | {{ isSandstorm }} |
|
||||
| Is Docker (.env) | {{ isDocker }} |
|
||||
| Trusted proxies (.env) | {{ trustedProxies }} |
|
||||
| User agent | {{ userAgent }} |
|
||||
|
||||
</textarea>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user