Skip to content

Commit

Permalink
Item12801: make logging of sql action configurable
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/SqlPlugin@17403 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Mar 18, 2014
1 parent 01c886b commit 812ddf2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/System/SqlPlugin.txt
Expand Up @@ -126,6 +126,7 @@ The behavior when the database parameter is omitted is unchanged.
| Version: | %$VERSION% |
| Release: | %$RELEASE% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 18 Mar 2014: | (2.00) Foswiki:Tasks/Item12801 - make logging of sql action configurable |
| 29 Jan 2014: | (1.99) Foswiki:Tasks/Item12245 - enhance handing of bind parameters (Foswiki:Main/FrankHoellering) %BR% \
Foswiki:Tasks/Item12236 - cache bind values to be reused in =continue= mode (Foswiki:Main/FrankHoellering) %BR% \
Foswiki:Tasks/Item12737 - fix oracle long column type (Foswiki:Main/HansJosefKoehler) |
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/SqlPlugin/Core.pm
Expand Up @@ -313,7 +313,7 @@ sub checkAccess {
if (! $ret) {
$message .= " [ACCESS DENIED]";
}
Foswiki::Func::writeEvent("sql", $message);
Foswiki::Func::writeEvent("sql", $message) if $Foswiki::cfg{Log}{Action}{sql};

if (! $ret) {
Foswiki::Func::writeWarning("SqlPlugin", "Access control check failed on database '$theDatabase' for query '$theQuery'");
Expand Down
1 change: 1 addition & 0 deletions lib/Foswiki/Plugins/SqlPlugin/DEPENDENCIES
@@ -1 +1,2 @@
DBI,>=1,cpan,Required.
Text::ParseWords,>=1,cpan,Required.

0 comments on commit 812ddf2

Please sign in to comment.