Revert "Add location to engine logger (#19104)" (#19150)

This reverts commit ce507d9959.

Reverting as the location is always the internal prelude function. So it's not really useful.
This commit is contained in:
Ratko Veprek 2024-05-03 12:01:00 +02:00 committed by GitHub
parent 45f4c84a87
commit 02fff5d5c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,9 +34,7 @@ import com.daml.scalautil.Statement.discard
// TODO once the ContextualizedLogger is replaced with the NamedLogger and Speedy doesn't use its
// own logger, we can remove this import
trait EngineLogger {
def add(message: String, optLocation: Option[com.daml.lf.data.Ref.Location])(implicit
loggingContext: LoggingContext
): Unit
def add(message: String)(implicit loggingContext: LoggingContext): Unit
}
object EngineLogger {
@ -45,7 +43,7 @@ object EngineLogger {
new TraceLog {
override def add(message: String, optLocation: Option[com.daml.lf.data.Ref.Location])(
implicit loggingContext: LoggingContext
): Unit = value.add(message, optLocation)
): Unit = value.add(message)
override def iterator: Iterator[(String, Option[com.daml.lf.data.Ref.Location])] =
Iterator.empty
}