summaryrefslogtreecommitdiff
path: root/src/Util/InstallerUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util/InstallerUtil.cpp')
-rwxr-xr-xsrc/Util/InstallerUtil.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Util/InstallerUtil.cpp b/src/Util/InstallerUtil.cpp
index afdea15..b6f4ed7 100755
--- a/src/Util/InstallerUtil.cpp
+++ b/src/Util/InstallerUtil.cpp
@@ -411,3 +411,26 @@ InstallerUtil::CreateSymlinkForAppDirectory(const String& inPath, String& outPat
return true;
}
+bool
+InstallerUtil::DumpLog(const char* pBuf)
+{
+ char temp[4096] = {0};
+ TryReturn(pBuf, false, "[osp-installer] pBuf is null");
+
+ int bufLen = strlen(pBuf);
+ strncpy(temp, pBuf, sizeof(temp));
+
+ char *pStart = &temp[0];
+
+ for (int i = 0; i < bufLen; i++)
+ {
+ if (temp[i] == '\n')
+ {
+ temp[i] = 0;
+ AppLogTag(OSP_INSTALLER, "%s", pStart);
+ pStart = temp + i + 1;
+ }
+ }
+
+ return true;
+}