Skip to content

Instantly share code, notes, and snippets.

@edengal
Created July 19, 2019 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edengal/067e121522ba1fce0e67e128fc87cdec to your computer and use it in GitHub Desktop.
Save edengal/067e121522ba1fce0e67e128fc87cdec to your computer and use it in GitHub Desktop.
public List<String> query(String query, String timbermillParentId) throws InterruptedException {
String id = TimberLogger.start("query", timbermillParentId, LogParams.create().text("sql", query));
try {
authorize(id);
List<String> list = runSql(query);
TimberLogger.success();
return list;
} catch (Throwable t){
TimberLogger.error(t);
throw t;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment