File tree Expand file tree Collapse file tree 8 files changed +0
-32
lines changed Expand file tree Collapse file tree 8 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ dir_mapping = {
2727 "replica" : "connection" ,
2828 "user" : "connection" ,
2929 "database" : "connection" ,
30- "init_logging" : "connection" ,
3130
3231 "session" : "session" ,
3332 "options" : "session" ,
@@ -84,7 +83,6 @@ dir_mapping = {
8483force_file = {
8584 "check_error" : "error" ,
8685 "get_last_error" : "error" ,
87- "init_logging" : "connection" ,
8886
8987 "boolpromise" : "primitives" ,
9088 "voidpromise" : "primitives" ,
Original file line number Diff line number Diff line change @@ -34,19 +34,6 @@ thread_local! {
3434 static LAST_ERROR : RefCell <Option <Error >> = RefCell :: new( None ) ;
3535}
3636
37- /// Enables logging in the TypeDB driver.
38- #[ no_mangle]
39- pub extern "C" fn init_logging ( ) {
40- static INIT : Once = Once :: new ( ) ;
41-
42- INIT . call_once ( || {
43- const ENV_VAR : & str = "TYPEDB_DRIVER_LOG_LEVEL" ;
44- if let Err ( err) = env_logger:: try_init_from_env ( Env :: new ( ) . filter ( ENV_VAR ) ) {
45- warn ! ( "Failed to initialize logging: {}" , err) ;
46- }
47- } ) ;
48- }
49-
5037fn ok_record < T > ( result : Result < T > ) -> Option < T > {
5138 match result {
5239 Ok ( value) => Some ( value) ,
Original file line number Diff line number Diff line change 134134 }
135135%}
136136
137- %noexception init_logging;
138-
139137/* simple getters do not throw */
140138%noexception options_new;
141139%noexception options_get_infer;
Original file line number Diff line number Diff line change 7979 }
8080}
8181
82- %nojavaexception init_logging;
83-
8482%nojavaexception transaction_options_new;
8583%nojavaexception transaction_options_get_transaction_timeout_millis;
8684%nojavaexception transaction_options_set_transaction_timeout_millis;
Original file line number Diff line number Diff line change @@ -107,6 +107,4 @@ static PyObject* PyExc_TypeDBDriverError;
107107
108108%pythoncode %{
109109 TypeDBDriverExceptionNative = native_driver_python.TypeDBDriverExceptionNative
110-
111- native_driver_python.init_logging ()
112110%}
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ using namespace TypeDB;
2626
2727namespace TypeDB {
2828
29- void Driver::initLogging () {
30- _native::init_logging ();
31- }
32-
3329Driver Driver::coreDriver (const std::string& address) {
3430 auto p = _native::connection_open_core (address.c_str ());
3531 DriverException::check_and_throw ();
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ public abstract class NativeObjectWrapper<T>
3030 {
3131 public readonly T NativeObject ;
3232
33- static NativeObjectWrapper ( )
34- {
35- Pinvoke . typedb_driver . init_logging ( ) ;
36- }
37-
3833 protected NativeObjectWrapper ( T ? nativeObject )
3934 {
4035 NativeObject = nativeObject ?? throw new TypeDBDriverException ( InternalError . NULL_NATIVE_VALUE ) ;
Original file line number Diff line number Diff line change 2222import com .typedb .driver .common .exception .ErrorMessage ;
2323import com .typedb .driver .common .exception .TypeDBDriverException ;
2424
25- import static com .typedb .driver .jni .typedb_driver .init_logging ;
2625
2726public abstract class NativeObject <T > {
2827 static {
2928 Loader .loadNativeLibraries ();
30- init_logging ();
3129 }
3230
3331 public final T nativeObject ;
You can’t perform that action at this time.
0 commit comments