diff --git a/src/Config.jl b/src/Config.jl index 30288bd..15b014f 100644 --- a/src/Config.jl +++ b/src/Config.jl @@ -292,8 +292,8 @@ tf_config_injector(inj::InjectorConfig) = tf_config.inj = inj tf_config_injector(; args...) = patch_config!(tf_config.inj; args...) """ - config_session(log::SessionConfig) - config_session(; args...) + tf_config_session(log::SessionConfig) + tf_config_session(; args...) Set the session for the global TrackedFloats configuration instance. diff --git a/test/complex_test.jl b/test/complex_test.jl index 9259c08..126f927 100644 --- a/test/complex_test.jl +++ b/test/complex_test.jl @@ -17,7 +17,7 @@ end @testset "events get recorded" begin tf_init() - config_session(testing=true) + tf_config_session(testing=true) tmp1 = tempname() # This should automatically get cleaned up tf_exclude_stacktrace([:kill,:inject]) tf_config_logger(filename=tmp1, buffersize=1, maxFrames=3) diff --git a/test/logger_tests.jl b/test/logger_tests.jl index 8918b31..2ea584d 100644 --- a/test/logger_tests.jl +++ b/test/logger_tests.jl @@ -18,7 +18,7 @@ f0(n) = f1((n * n - 4.0) / (n - 2.0)) @testset "maxFrames: only print out n stack frames" begin tf_init() - config_session(testing=true) + tf_config_session(testing=true) tmp1 = tempname() # This should automatically get cleaned up tmp2 = tempname() @@ -44,7 +44,7 @@ end @testset "maxLogs: only log n events then stop" begin tf_init() - config_session(testing=true) + tf_config_session(testing=true) tmp1 = tempname() # This should automatically get cleaned up tmp2 = tempname()