Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
chore(SIPI): add timestamp to some SIPI Lua logs (#2311)
- Loading branch information
1 parent
86dc389
commit 8f3f19f
Showing
2 changed files
with
43 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- * Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. | ||
-- * SPDX-License-Identifier: Apache-2.0 | ||
|
||
function log(msg, level) | ||
local timestamp = os.date("!%Y-%m-%dT%H:%M:%S") | ||
local log_message = timestamp .. " - " .. msg | ||
server.log(log_message, level) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters