Skip to content
Snippets Groups Projects
Commit dc616b06 authored by Eric Wait's avatar Eric Wait
Browse files

Log Save Fixed

parent 8e0399a5
No related branches found
No related tags found
No related merge requests found
...@@ -89,11 +89,17 @@ logEntry = length(Log)+1; ...@@ -89,11 +89,17 @@ logEntry = length(Log)+1;
Log(logEntry).time = time; Log(logEntry).time = time;
Log(logEntry).user = usr; Log(logEntry).user = usr;
Log(logEntry).figures = Figures;
Log(logEntry).stack = callstack; Log(logEntry).stack = callstack;
Log(logEntry).action = action; Log(logEntry).action = action;
Log(logEntry).oldValue = oldValue; Log(logEntry).oldValue = oldValue;
Log(logEntry).newValue = newValue; Log(logEntry).newValue = newValue;
Log(logEntry).figures.time = Figures.time;
if (isfield(Figures,'cells'))
Log(logEntry).figures.cells = Figures.cells;
end
if (isfield(Figures,'tree'))
Log(logEntry).figures.tree = Figures.tree;
end
file = fopen(logFile,'a'); file = fopen(logFile,'a');
while(file<2) while(file<2)
...@@ -106,7 +112,7 @@ while(file<2) ...@@ -106,7 +112,7 @@ while(file<2)
end end
end end
fprintf(file,row); fprintf(file,'%s',row);
fclose(file); fclose(file);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment