Add Sweetlogger
This commit is contained in:
@@ -1419,11 +1419,11 @@ func _open_log() -> void:
|
||||
path = OS.get_environment("TEMP").path_join("vryhungry_mptest_%s.log" % role)
|
||||
_log_file = FileAccess.open(path, FileAccess.WRITE)
|
||||
_log_path = ProjectSettings.globalize_path(path)
|
||||
print("[MPTEST] step log -> %s" % _log_path)
|
||||
SweetLogger.info("[MPTEST] step log -> {0}", [_log_path], "mp_test_driver.gd", "_open_log")
|
||||
|
||||
|
||||
func _log(s: String) -> void:
|
||||
print("[MPTEST %s] %s" % [_role, s])
|
||||
SweetLogger.info("[MPTEST {0}] {1}", [_role, s], "mp_test_driver.gd", "_log")
|
||||
if _log_file:
|
||||
_log_file.store_line(s)
|
||||
_log_file.flush()
|
||||
|
||||
Reference in New Issue
Block a user