Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Universal Logging Plugin
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
Universal Logging Plugin
Merge requests
!17
fix double Deletion
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
fix double Deletion
fix/double-deletion
into
develop
Overview
2
Commits
2
Pipelines
0
Changes
2
Merged
fix double Deletion
Jan Delember
requested to merge
fix/double-deletion
into
develop
Nov 24, 2021
Overview
2
Commits
2
Pipelines
0
Changes
2
avoid attempted double deletion, if two uUniLog streams use the same file stream
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
8d539baa
2 commits,
Dec 9, 2021
2 files
+
3
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Source/UniversalLogging/Private/LogFileStream.cpp
+
2
−
3
View file @ 8d539baa
Edit in single-file editor
Open in Web IDE
Show full file
@@ -23,7 +23,7 @@ void LogFileStream::Open()
FString
file_path
=
FPaths
::
ConvertRelativePathToFull
(
FPaths
::
ProjectDir
()
+
Filepath
);
platform_file
.
CreateDirectoryTree
(
*
file_path
);
file_path
=
FPaths
::
Combine
(
file_path
,
Filename
);
File_Handle
=
platform_file
.
OpenWrite
(
*
file_path
);
File_Handle
.
Reset
(
platform_file
.
OpenWrite
(
*
file_path
)
)
;
if
(
!
File_Handle
)
{
UE_LOG
(
LogUni
,
Error
,
TEXT
(
"Universal Logging: The file %s could not be opened for writing."
),
*
file_path
);
@@ -35,8 +35,7 @@ void LogFileStream::Open()
void
LogFileStream
::
Close
()
{
delete
File_Handle
;
File_Handle
=
nullptr
;
File_Handle
.
Reset
();
bIs_Open
=
false
;
}
Loading