Skip to content

Commit

Permalink
LOG: Default log level PJ_LOG_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Feb 20, 2021
1 parent 9c299f3 commit 21fd861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ctx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void proj_assign_context( PJ* pj, PJ_CONTEXT *ctx )
pj_ctx pj_ctx::createDefault()
{
pj_ctx ctx;
ctx.debug_level = PJ_LOG_NONE;
ctx.debug_level = PJ_LOG_ERROR;
ctx.logger = pj_stderr_logger;
NS_PROJ::FileManager::fillDefaultNetworkInterface(&ctx);

Expand Down
2 changes: 1 addition & 1 deletion src/proj_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ struct projFileApiCallbackAndData
struct pj_ctx{
std::string lastFullErrorMessage{}; // used by proj_context_errno_string
int last_errno = 0;
int debug_level = 0;
int debug_level = 1;
void (*logger)(void *, int, const char *) = nullptr;
void *logger_app_data = nullptr;
struct projCppContext* cpp_context = nullptr; /* internal context for C++ code */
Expand Down

0 comments on commit 21fd861

Please sign in to comment.