Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion common/src/main/java/com/genexus/diagnostics/UserLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public static ILogger getMainLogger() {
private static ILogger getLogger(String topic) {
ILogger log;
if (topic != null && topic.length() > 0) {
log = LogManager.getLogger(String.format("%s.%s", defaultUserLogNamespace, topic.trim()));
String loggerName = topic.startsWith("$") ? topic.substring(1): String.format("%s.%s", defaultUserLogNamespace, topic.trim());
log = LogManager.getLogger(loggerName);
}
else {
log = getMainLogger();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ public class GXWebProgressIndicator
private GXWebNotification notification;
private GXWebProgressIndicatorInfo info;
private ModelContext context;
private boolean running = false;


public GXWebProgressIndicator(ModelContext gxContext)
{
Expand All @@ -20,34 +18,28 @@ public GXWebProgressIndicator(ModelContext gxContext)

public void show()
{
running = true;
setAction("0");
updateProgress();
}

private void updateProgress()
{
if (running)
{
GXWebNotificationInfo notif = new GXWebNotificationInfo(0,context,"");
notif.setId(GXWebProgressIndicator.ID);
notif.setGroupName(GXWebProgressIndicator.ID);
notif.setMessage(info);
notification.notify(notif);
}
GXWebNotificationInfo notif = new GXWebNotificationInfo(0,context,"");
notif.setId(GXWebProgressIndicator.ID);
notif.setGroupName(GXWebProgressIndicator.ID);
notif.setMessage(info);
notification.notify(notif);
}

public void showWithTitle(String title)
{
running = true;
setTitle(title);
setAction("1");
updateProgress();
}

public void showWithTitleAndDescription(String title, String desc)
{
running = true;
setTitle(title);
setDescription(desc);
setAction("2");
Expand All @@ -58,7 +50,6 @@ public void hide()
{
setAction("3");
updateProgress();
running = false;
}

private String getAction() {
Expand Down