This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
chore(SIPI): add timestamp to some SIPI Lua logs (#2311)
- Loading branch information
Showing 2 changed files with 43 additions and 24 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions 8 sipi/scripts/log_util.lua
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|