Skip to content

Commit

Permalink
[TASK] Adapt to new TYPO3 behaviour in dependence of [SYS][enable_DLO…
Browse files Browse the repository at this point in the history
…G]. Fixes tschikarski#28
  • Loading branch information
tschikarski committed Oct 15, 2018
1 parent a107afe commit 0cecdfc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
4 changes: 0 additions & 4 deletions Documentation/Configuration/ConfigurationOptions/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ Debugging
========================= ========== =========================================================================================================== ==========================================
Property: Data type: Description: Default:
========================= ========== =========================================================================================================== ==========================================
FE_devLog boolean Write internal information on frontend logins to 'devlog' FALSE
------------------------- ---------- ----------------------------------------------------------------------------------------------------------- ------------------------------------------
BE_devLog boolean Write internal information on backend logins to 'devlog' FALSE
------------------------- ---------- ----------------------------------------------------------------------------------------------------------- ------------------------------------------
database_devLog boolean When writing devlog info, also include details on database operations. FALSE
========================= ========== =========================================================================================================== ==========================================

Expand Down
21 changes: 18 additions & 3 deletions Documentation/Debugging/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,30 @@ Activating devlog debugging
---------------------------

This extension is able to write debug information via 'devlog'. Install the extension 'devlog'.
If you have access to the server, you might want to use the file based variant 'rlmp_filedevlog' instead and run something like ``tail -f debug.log`` on the console.
If you have access to the server, you might want to use the file based variant 'rlmp_filedevlog' instead and
run something like ``tail -f debug.log`` on the console.

With this installed, go to the extension configuration and select the "debugging" tab. Here, you can activate debug logs for frontend and/or backend.
To enable writing devlog entries, you have to go to the install tool and under "All configuration" set the value
for ``[SYS][enable_DLOG]`` to ``true``.

Don't start with additional debugging info, as it fills up your debug log with even more information.
You might want to filter the devlog entries by "Key". Select the class name ``\TrustCnct\Shibboleth\ShibbolethAuthentificationService``.

After trying a Shibboleth log in (FE or BE), you should find an entry with message ``getUserFE ($_SERVER)`` or ``getUserBE ($_SERVER)`` as the
first entry of the test run. This will tell you the content of the $_SERVER variable on that run, which is important to
determine, if the web server successfully received parameters from the SP module. To view the variable, click on the small arrow
symbol in the "Extra data" column.

Further entries tell why the extension decided to do, what it did.

In rare cases you might want to activate additional logging, which can tell some details of what's going on on the database level. For that,
go to the extension configuration and select the "debugging" tab. Here, you can activate this additional logging.

*Hint:* Debugging BE authentication is a bit tricky, when you have the TYPO3 backend open, as you might be confused by AJAX requests showing up in the log.
That's a good reason to switch to file based logging. It will allow you to keep the BE closed while testing.

**WARNING:** Deactivate devlog as soon as you finish debugging. Never keep it active on a production system. You might do so by uninstalling/deactivating
the devlog extension or by disabling the system variable ``[SYS][enable_DLOG]``.

Checking if the extension is active
-----------------------------------

Expand Down
Binary file modified Documentation/Imagedir/extconf_debugging.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions ext_conf_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,5 @@ forceSSL = 1
FE_applicationID =
# cat=Advanced/enable/170; type=string; label=BE Application-ID (optional): Compare Shibboleth Application-ID with this string, if not empty
BE_applicationID =
# cat=Debugging/enable/190; type=boolean; label=FE user auth devLog: Activate devLog'ging for FE. Please note that you have to have a devLog extension to really get logs
FE_devLog = 0
# cat=Debugging/enable/200; type=boolean; label=BE user auth devLog: Activate devLog'ging for FE. Please note that you have to have a devLog extension to really get logs
BE_devLog = 0
# cat=Debugging/enable/210; type=boolean; label=Activate extra devLog'ging for FE/BE: Includes information on DB operations.
# cat=Debugging/enable/210; type=boolean; label=Activate extra devLog'ging for FE/BE: Include information on DB operations. Note that general activation of devlog requires to set [SYS][enable_DLOG] to true.
database_devLog = 0

0 comments on commit 0cecdfc

Please sign in to comment.