https://dagster.io/ logo
Title
j

Jim Abraham

09/23/2022, 1:23 PM
Logging seems not to be emitted in sensors, e.g. in a sensor: get_dagster_logger().info("foo") emits nothing. I know I can emit a message in a SkipReason, but it's still helpful for debugging a sensor to have logging. Am I mis-configured, or is this by design?
o

owen

09/23/2022, 4:33 PM
hi @Jim Abraham -- by "emits nothing" does that mean that the log statement also doesn't emit anything from the daemon process that's running the sensor code? Currently, there's no mechanism to associate log messages with a particular sensor execution (only job execution), so it is to some extent by design that log messages are not recorded to the instance database when logged from within a sensor (although this is likely not going to be the case forever), but that logger should still emit to stdout as far as I'm aware