Skip to content

Commit

Permalink
Using correct Log
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Jul 18, 2024
1 parent 419eef7 commit ef4e957
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/neuronrobotics/bowlerstudio/GistHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

import com.neuronrobotics.bowlerstudio.scripting.PasswordManager;
import com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine;
import com.neuronrobotics.sdk.common.Log;
import com.neuronrobotics.sdk.util.ThreadUtil;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.jfree.util.Log;
//import org.jfree.util.Log;
import org.kohsuke.github.GHGist;
import org.kohsuke.github.GHGistBuilder;
import org.kohsuke.github.GHGistFile;
Expand Down Expand Up @@ -89,7 +90,7 @@ private static String createGistFromBuilder(GHGistBuilder builder, String filena
}

ThreadUtil.wait(500);
Log.warn(filename + " not built yet");
//Log.warn(filename + " not built yet");
}

System.out.println("Creating gist at " + filename);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR;
import com.neuronrobotics.sdk.addons.kinematics.parallel.ParallelGroup;
import com.neuronrobotics.sdk.common.DeviceManager;
import com.neuronrobotics.sdk.common.Log;
import com.neuronrobotics.sdk.util.ThreadUtil;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
Expand All @@ -39,7 +40,7 @@
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.InvalidRemoteException;
import org.eclipse.jgit.api.errors.TransportException;
import org.jfree.util.Log;
//import org.jfree.util.Log;
import org.kohsuke.github.GHCreateRepositoryBuilder;
import org.kohsuke.github.GHGist;
import org.kohsuke.github.GHGistBuilder;
Expand Down Expand Up @@ -359,7 +360,7 @@ public void run() {
TreeItem<String> setCAD = new TreeItem<>("Set CAD Engine...", AssetFactory.loadIcon("Set-CAD-Engine.png"));
callbackMapForTreeitems.put(setCAD, () -> {
PromptForGit.prompt("Select a CAD Engine From a Gist", device.getGitCadEngine()[0], (gitsId, file) -> {
Log.warn("Loading cad engine");
Log.warning("Loading cad engine");
try {
creatureLab.setGitCadEngine(gitsId, file, device);
File code = ScriptingEngine.fileFromGit(gitsId, file);
Expand All @@ -386,7 +387,7 @@ public void run() {
callbackMapForTreeitems.put(resetWalking, () -> {
PromptForGit.prompt("Select a Walking Engine From a Gist", device.getGitWalkingEngine()[0],
(gitsId, file) -> {
Log.warn("Loading walking engine");
Log.warning("Loading walking engine");
try {
creatureLab.setGitWalkingEngine(gitsId, file, device);
File code = ScriptingEngine.fileFromGit(gitsId, file);
Expand Down Expand Up @@ -683,7 +684,7 @@ public void run() {

}
ThreadUtil.wait(500);
Log.warn(gist + " not built yet");
Log.warning(gist + " not built yet");
}
// BowlerStudio.openUrlInNewTab(gist.getHtmlUrl());
System.out.println("Creating gist at: " + gitURL);
Expand Down Expand Up @@ -1460,7 +1461,7 @@ public void onTransformChaging(TransformNR newTrans) {
TreeItem<String> setCAD = new TreeItem<>("Set CAD Engine...", AssetFactory.loadIcon("Set-CAD-Engine.png"));
callbackMapForTreeitems.put(setCAD, () -> {
PromptForGit.prompt("Select a CAD Engine From Git", dh.getGitCadEngine()[0], (gitsId, file) -> {
Log.warn("Loading cad engine");
Log.warning("Loading cad engine");
try {
creatureLab.setGitCadEngine(gitsId, file, dh);
openCadTab(creatureLab, gitsId, file);
Expand All @@ -1485,7 +1486,7 @@ public void onTransformChaging(TransformNR newTrans) {
AssetFactory.loadIcon("Set-DH-Kinematics.png"));
callbackMapForTreeitems.put(resetWalking, () -> {
PromptForGit.prompt("Select a DH Solver Engine From Git", dh.getGitDhEngine()[0], (gitsId, file) -> {
Log.warn("Loading walking engine");
Log.warning("Loading walking engine");
try {
creatureLab.setGitDhEngine(gitsId, file, dh);
File code = ScriptingEngine.fileFromGit(gitsId, file);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.neuronrobotics.bowlerstudio.creature;

import org.jfree.util.Log;
//import org.jfree.util.Log;

import com.neuronrobotics.bowlerstudio.BowlerStudio;
import com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import java.util.Optional;

import org.eclipse.jgit.api.Git;
import org.jfree.util.Log;
//import org.jfree.util.Log;

import com.neuronrobotics.bowlerstudio.BowlerStudio;
import com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler;
import com.neuronrobotics.bowlerstudio.assets.FontSizeManager;
import com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine;
import com.neuronrobotics.sdk.common.Log;
import com.neuronrobotics.video.OSUtil;

import javafx.application.Platform;
Expand Down

0 comments on commit ef4e957

Please sign in to comment.