Skip to content

Commit

Permalink
Log Alteza version in Engine.makeSite
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-menon committed Nov 26, 2024
1 parent 46c5489 commit f9494d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion alteza/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
PageNode,
PyPageNode,
)
from .version import version as alteza_version


class Args(Tap): # pyre-ignore[13]
Expand Down Expand Up @@ -474,7 +475,10 @@ def makeSite(self) -> None:

elapsedMilliseconds = (time.time_ns() - startTimeNs) / 10**6
# pylint: disable=consider-using-f-string
print("\nSite generation complete. Time elapsed: %.2f ms" % elapsedMilliseconds)
print(
"\nSite generation complete (Alteza %s). Time elapsed: %.2f ms"
% (alteza_version, elapsedMilliseconds)
)

def makeSiteWithExceptionHandling(self) -> None:
try:
Expand Down

0 comments on commit f9494d2

Please sign in to comment.