https://pantsbuild.org/ logo
#development
Title
# development
a

aloof-angle-91616

12/11/2019, 10:49 PM
src/python/pants/engine/scheduler.py
, line 427
h

hundreds-breakfast-49010

12/11/2019, 10:50 PM
ah, sorry I was unclear. I meant the general text format
of timestamp, then [Log level] , then the text of the log
that was just an example
a

aloof-angle-91616

12/11/2019, 10:52 PM
src/rust/engine/logging/src/logger.rs
,
Copy code
pub fn log_from_python(
    &self,
    message: &str,
    python_level: u64,
    target: &str,
  ) -> Result<(), String> {
    python_level.try_into().map(|level: PythonLogLevel| {
      log!(target: target, level.into(), "{}", message);
    })
  }
h

hundreds-breakfast-49010

12/11/2019, 10:52 PM
so, that formatting is something the
log!
macro in the rust logigng crate is doing?
a

aloof-angle-91616

12/11/2019, 10:54 PM
yes, and apparently the log level is controlling the
[INFO]
formatting when apparently that's supposed to be a debug log? not sure about that
h

hundreds-breakfast-49010

12/11/2019, 10:55 PM
oh, I flipped that deliberately in my local copy of the code, just to force it to log something to test something unrelated
like I set the logger to invoke
info
rather than
debug
there so I'd see something