added a force set option on log XID to override it even we can act as an origin client
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 19 Sep 2008 19:27:56 +0000 (19:27 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 19 Sep 2008 19:27:56 +0000 (19:27 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1433 9efc2488-bf62-4759-914b-345cdb29e865

include/opensrf/log.h
src/libopensrf/log.c

index b3741c9..11c273e 100644 (file)
@@ -72,7 +72,14 @@ void osrfLogActivity( const char* file, int line, const char* msg, ... );
 void osrfLogCleanup( void );
 
 void osrfLogClearXid( void );
+/**
+ * Set the log XID.  This only sets the xid if we are not the origin client 
+ */
 void osrfLogSetXid(char* xid);
+/**
+ * Set the log XID regardless of whether we are the origin client
+ */
+void osrfLogForceXid(char* xid);
 void osrfLogMkXid( void );
 void osrfLogSetIsClient(int is);
 char* osrfLogGetXid( void );
index 01e60e0..14fdf06 100644 (file)
@@ -53,6 +53,9 @@ void osrfLogClearXid( void ) { _osrfLogSetXid(""); }
 void osrfLogSetXid(char* xid) {
    if(!_osrfLogIsClient) _osrfLogSetXid(xid);
 }
+void osrfLogForceXid(char* xid) {
+   _osrfLogSetXid(xid);
+}
 
 void osrfLogMkXid( void ) {
    if(_osrfLogIsClient) {