Skip to content

Commit

Permalink
Removed console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AsbjoernJC committed Mar 20, 2024
1 parent 0395057 commit 514bee2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion TimeTrace/src/components/FileUploadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ function FileUploadButton({ onFileChange }: { onFileChange: (file: File | null)
const target = e.target as HTMLInputElement;
const file: File = (target.files as FileList)[0];

console.log(file);
// Call the callback function with the file
onFileChange(file);
if(target !== null) {
Expand Down
1 change: 0 additions & 1 deletion TimeTrace/src/components/LogTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ function LogTable(props: LogTableProps) {
if (filteredValue === "" && eventText !== "") return;
const mapKey = props.events[mappingIndex];
props.mappings.set(mapKey, filteredValue);
console.log("props.mappings: ", props.mappings)
const newMappings = new Map(props.mappings);
if (props.setMappings) {
props.setMappings(newMappings);
Expand Down
1 change: 0 additions & 1 deletion TimeTrace/src/models/LogFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export class LogFormatter {
try {
let lines: string[] = await getFileLines(originalLog); //convert file to array of strings. Has format <time> <event>
let mappedLines: string[] = this.convertLines(lines, mappings) //map all events and format to <event> <time>
console.log({"mappedLines": mappedLines})
let f: File = new File([mappedLines.join("\n")], "mapped.txt", {type: "text/plain"}) //return file object with mapped and formatted events
return f;
} catch (error) { //readfile might throw error
Expand Down
1 change: 0 additions & 1 deletion TimeTrace/src/pages/LogPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ function LogPage() {
const queryHandler: QueryHandler = new QueryHandler();
function handleSearchSubmit(TRE: string): void {

console.log('Search TRE:', TRE);
queryHandler.TREBuilder.TREString = TRE;
queryHandler.search(TRE);
}
Expand Down
1 change: 0 additions & 1 deletion TimeTrace/src/pages/MappingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function MappingsPage() {
// Callback function to receive the file
const handleFileChange = async (file: File | null) => {
setUploadedFile(file);
console.log(file);
if (file) {
let lines: string[] = await getFileLines(file);
setFileLines(lines);
Expand Down

0 comments on commit 514bee2

Please sign in to comment.