Changeset 4498 for branches/2.8-stable
- Timestamp:
- Sep 10, 2008, 11:06:57 AM (15 years ago)
- Location:
- branches/2.8-stable/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8-stable/src/clients/jobagent/net/sf/basedb/clients/jobagent/Agent.java
r4496 r4498 754 754 catch (Throwable t) 755 755 { 756 log. error("Exception while setting active project to" + projectId +757 " . Continuing with no active project.", t);756 log.warn("Exception while setting active project to Project[id=" + projectId + 757 "]. Continuing with no active project.", t); 758 758 } 759 759 } -
branches/2.8-stable/src/clients/jobagent/net/sf/basedb/clients/jobagent/executors/ThreadJobExecutor.java
r4497 r4498 183 183 184 184 impersonated = sc.impersonateLogin(job, "Running job: " + job.getName()); 185 if (job.getActiveProjectId() != 0) 185 int projectId = job.getActiveProjectId(); 186 if (projectId != 0) 186 187 { 187 188 dc = impersonated.newDbControl(); 188 Project activeProject = Project.getById(dc, job.getActiveProjectId()); 189 impersonated.setActiveProject(activeProject); 189 try 190 { 191 Project activeProject = Project.getById(dc, projectId); 192 impersonated.setActiveProject(activeProject); 193 } 194 catch (Throwable t) 195 { 196 log.warn("Exception while setting active project to Project[id=" + projectId + 197 "]. Continuing with no active project.", t); 198 } 190 199 dc.close(); 191 200 } -
branches/2.8-stable/src/core/net/sf/basedb/core/InternalJobQueue.java
r4479 r4498 483 483 catch (Throwable t) 484 484 { 485 log.error("Exception while setting active project. Continuing with no active project.", t); 485 log.warn("Exception while setting active project to Project[id=" + projectId + 486 "]. Continuing with no active project.", t); 486 487 } 487 488 }
Note: See TracChangeset
for help on using the changeset viewer.