Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ac8a52

Browse files
authored
make Python logging fn public (#1414)
1 parent00650e8 commit0ac8a52

File tree

1 file changed

+2
-2
lines changed
  • pgml-extension/src/bindings

1 file changed

+2
-2
lines changed

‎pgml-extension/src/bindings/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use pyo3::{pyfunction, PyResult, Python};
88
usecrate::orm::*;
99

1010
#[pyfunction]
11-
fnr_insert_logs(project_id:i64,model_id:i64,logs:String) ->PyResult<String>{
11+
pubfnr_insert_logs(project_id:i64,model_id:i64,logs:String) ->PyResult<String>{
1212
let id_value =Spi::get_one_with_args::<i64>(
1313
"INSERT INTO pgml.logs (project_id, model_id, logs) VALUES ($1, $2, $3::JSONB) RETURNING id;",
1414
vec![
@@ -23,7 +23,7 @@ fn r_insert_logs(project_id: i64, model_id: i64, logs: String) -> PyResult<Strin
2323
}
2424

2525
#[pyfunction]
26-
fnr_log(level:String,message:String) ->PyResult<String>{
26+
pubfnr_log(level:String,message:String) ->PyResult<String>{
2727
match level.as_str(){
2828
"info" =>info!("{}", message),
2929
"warning" =>warning!("{}", message),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp