[
https://issues.apache.org/jira/browse/TRAFODION-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14723620#comment-14723620
]
ASF GitHub Bot commented on TRAFODION-353:
------------------------------------------
Github user sureshsubbiah commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/69#discussion_r38328837
--- Diff: core/sql/sqlcomp/PrivMgr.cpp ---
@@ -894,3 +918,49 @@ void PrivMgr::setFlags()
SQL_EXEC_SetParserFlagsForExSqlComp_Internal(INTERNAL_QUERY_FROM_EXEUTIL);
}
+//
----------------------------------------------------------------------------
+// method::log
+//
+// sends a message to log4cxx implementation designed by SQL
+//
+// Input:
+// filename - code file that is performing the request
+// message - the message to log
+// index - index for logging that loops through a list
+//
+// Background
+// Privilege manager code sets up a message and calls this log method
+// This method calls SQLMXLoggingArea::logPrivMgrInfo described in
+// sqlmxevents/logmxevent_traf (.h & .cpp)
+// logPrivMgInfo is a wrapper class around qmscommon/QRLogger (.h & .cpp)
+// log method
+// QRLogger generates a message calls the log method in
+// sqf/commonLogger/CommonLogger (.h & .cpp)
+// CommonLogger interfaces with the log4cxx code which eventually puts
+// a message into a log file called
../sqf/logs/master_exec_0_pid.log.
+// A new master log is created for each new SQL process started.
+//
+// Sometimes it is amazing that things actually work with all these levels
+// of interfaces. Perhaps we can skip a few levels...
+//
----------------------------------------------------------------------------
+void PrivMgr::log(
+ const std::string filename,
+ const std::string message,
+ const int_32 index)
+{
+ // for now, don't log
+ return;
--- End diff --
I am curious about this. Why have we disabled logging? Is log4cpp (or is it
log4cxx) our current logging framework? Is it working adequately?
> LP Bug: 1327302 - traf_authentication_config template reference incorrect
> script
> --------------------------------------------------------------------------------
>
> Key: TRAFODION-353
> URL: https://issues.apache.org/jira/browse/TRAFODION-353
> Project: Apache Trafodion
> Issue Type: Bug
> Components: sql-security
> Reporter: Paul Low
> Assignee: Cliff Gray
> Priority: Minor
>
> Line 26 in the template file
> $MY_SQROOT/sql/scripts/traf_authentication_config refers to a script
> 'sqauthon'. The script name needs to be updated to
> 'traf_authentication_setup'.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)