Moodle
  1. Moodle
  2. MDL-10859

Add information about $CFG-logsql to the config-dist.php

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.9
    • Component/s: Documentation
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      37211

      Description

      Martin himself told me this in March 2006 but I had forgotten and went through some googling and moodling before I found out / remembered that Moodle can be told to keep a log of database queries with $CFG->logsql = true; in the config.php. Mention of this could be benefitial in config-dist.php, as that is the place I look for "hidden" config options.

      docs.moodle.org didn't know about this either. Martins original hint here: http://moodle.org/mod/forum/discuss.php?d=42040#p193478

        Activity

        Hide
        Samuli Karevaara added a comment -

        If the attached path is OK, could I commit it to HEAD? Should be pretty safe as config-dist.php is not executable code.

        Show
        Samuli Karevaara added a comment - If the attached path is OK, could I commit it to HEAD? Should be pretty safe as config-dist.php is not executable code.
        Hide
        Samuli Karevaara added a comment -

        I tried to commit the patch myself, but it said "**** Access denied: Insufficient Karma (samulik|moodle|)". Martin did ask me earlier if I would like to have write access to fix some trivial stuff myself, could it be that I'm not allowed to touch the top level files, or that I have no write-access yet?

        Show
        Samuli Karevaara added a comment - I tried to commit the patch myself, but it said "**** Access denied: Insufficient Karma (samulik|moodle|)". Martin did ask me earlier if I would like to have write access to fix some trivial stuff myself, could it be that I'm not allowed to touch the top level files, or that I have no write-access yet?
        Hide
        Samuli Karevaara added a comment -

        I added my own patch to HEAD myself, now that I've got karrrrma This is such a minor thing that probably not worth backporting to 1.8. I hope I didn't break everything, my first commit on Moodle ever... A commented-out part of a non-used file seemed like a safe place to start

        Show
        Samuli Karevaara added a comment - I added my own patch to HEAD myself, now that I've got karrrrma This is such a minor thing that probably not worth backporting to 1.8. I hope I didn't break everything, my first commit on Moodle ever... A commented-out part of a non-used file seemed like a safe place to start
        Hide
        Helen Foster added a comment -

        Thanks Samuli - great work!

        Show
        Helen Foster added a comment - Thanks Samuli - great work!

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: