Closed
Description
Sentry Feedback: JAVASCRIPT-31PA
Python built-in logging allows named arguments with a dictionary for the first argument
logging.info(
"%(source)s call completed, %(input_tk)i input tk, %(output_tk)i output tk (model %(model)s, cost $%(cost).4f, time %(time).1f sec, prompt_code %(prompt_code)s)",
{
"source": self.source,
"input_tk": self.input_tokens or 0,
"output_tk": self.output_tokens or 0,
"model": self.model,
"cost": self.cost,
"time": self.timer.elapsed_seconds if self.timer else 0,
"prompt_code": self.prompt_code or "-",
},
)
These should be picked up as parameters, but they don't seem to be.
The template came through, but the but the parameters weren't included.
Metadata
Metadata
Assignees
Labels
No labels