diff --git a/contrib/MVCFramework.View.Renderers.Sempare.pas b/contrib/MVCFramework.View.Renderers.Sempare.pas index c59f4655..d7fc130e 100644 --- a/contrib/MVCFramework.View.Renderers.Sempare.pas +++ b/contrib/MVCFramework.View.Renderers.Sempare.pas @@ -44,6 +44,7 @@ interface uses MVCFramework, MVCFramework.Commons, + MVCFramework.Logger, System.Classes, Sempare.Template; @@ -91,7 +92,7 @@ begin except on e: Exception do begin - writeln(e.Message); // not the most ideal way of doing things... we would want to use a logger + Log.ErrorFmt('[%s] %s', [e.Classname, e.Message], LOGGERPRO_TAG); raise e; end; end;