Skip to content

Commit 3c0c777

Browse files
committed
TEST: disable env preset
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
1 parent 48c60cf commit 3c0c777

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/flb_env.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ static int env_preset(struct flb_env *env)
7171
}
7272
tmp[ret] = '\0';
7373

74-
ret = flb_env_set(env, "FLUENT_BIT_PID", tmp);
75-
if (ret < 0) {
76-
flb_error("[env] could not set ${FLUENT_BIT_PID}");
77-
return -1;
78-
}
74+
// ret = flb_env_set(env, "FLUENT_BIT_PID", tmp);
75+
// if (ret < 0) {
76+
// flb_error("[env] could not set ${FLUENT_BIT_PID}");
77+
// return -1;
78+
// }
7979

8080
return 0;
8181
}
@@ -123,6 +123,8 @@ int flb_env_set(struct flb_env *env, const char *key, const char *val)
123123
klen = strlen(key);
124124
vlen = strlen(val);
125125

126+
printf("key: %s, val: %s (vlen: %i)\n", key, val, vlen);
127+
126128
/* Check if the key is already set */
127129
id = flb_hash_table_get(env->ht, key, klen, &out_buf, &out_size);
128130
if (id >= 0) {

0 commit comments

Comments
 (0)