[Groonga-commit] pgroonga/pgroonga at 42b6c31 [master] Put logs to database directory by default

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Jul 26 17:05:22 JST 2015


Kouhei Sutou	2015-07-26 17:05:22 +0900 (Sun, 26 Jul 2015)

  New Revision: 42b6c319d84dd23754fecea631913e85120d5896
  https://github.com/pgroonga/pgroonga/commit/42b6c319d84dd23754fecea631913e85120d5896

  Message:
    Put logs to database directory by default

  Modified files:
    pgroonga.c

  Modified: pgroonga.c (+2 -10)
===================================================================
--- pgroonga.c    2015-07-26 17:00:17 +0900 (a4e83e2)
+++ pgroonga.c    2015-07-26 17:05:22 +0900 (b487292)
@@ -219,15 +219,7 @@ PGrnLogPathAssign(const char *new_value, void *extra)
 			grn_default_logger_set_path(new_value);
 		}
 	} else {
-		char *databasePath;
-		char path[MAXPGPATH];
-
-		databasePath = GetDatabasePath(MyDatabaseId, DEFAULTTABLESPACE_OID);
-		join_path_components(path,
-							 databasePath,
-							 PGrnLogBasename);
-		pfree(databasePath);
-		grn_default_logger_set_path(path);
+		grn_default_logger_set_path(PGrnLogBasename);
 	}
 }
 
@@ -243,7 +235,7 @@ PGrnInitializeVariables(void)
 	DefineCustomStringVariable("pgroonga.log_path",
 							   "Log path for PGroonga.",
 							   "The default is "
-							   "\"${database_dir}/" PGrnLogBasename "\". "
+							   "\"${PG_DATA}/" PGrnLogBasename "\". "
 							   "Use \"none\" to disable file output.",
 							   &PGrnLogPath,
 							   NULL,
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index